Class: Pug::Strings

Inherits:
Object
  • Object
show all
Defined in:
lib/pug/strings.rb

Overview

Convenience methods for user facing strings

Class Method Summary collapse

Class Method Details

.enter_inputs(action_name) ⇒ Object



22
23
24
# File 'lib/pug/strings.rb', line 22

def self.enter_inputs(action_name)
  "Enter inputs for #{action_name}"
end

.error_occurredObject



10
11
12
# File 'lib/pug/strings.rb', line 10

def self.error_occurred
  'An error occurred acting on your action'
end

.finished_running(action_name) ⇒ Object



14
15
16
# File 'lib/pug/strings.rb', line 14

def self.finished_running(action_name)
  "Finished running #{action_name}"
end

.help(commands) ⇒ Object



34
35
36
# File 'lib/pug/strings.rb', line 34

def self.help(commands)
  "These are the available commands:\n#{commands}"
end

.list_descriptionObject



42
43
44
# File 'lib/pug/strings.rb', line 42

def self.list_description
  'Displays all your available pug-bot actions'
end

.no_action_runningObject



6
7
8
# File 'lib/pug/strings.rb', line 6

def self.no_action_running
  'There is no action currently running.'
end

.no_actionsObject



30
31
32
# File 'lib/pug/strings.rb', line 30

def self.no_actions
  'There are no actions available to run. Did you set some up?'
end

.no_help_commandsObject



38
39
40
# File 'lib/pug/strings.rb', line 38

def self.no_help_commands
  'There are no available commands.'
end

.unable_to_start_action(index) ⇒ Object



18
19
20
# File 'lib/pug/strings.rb', line 18

def self.unable_to_start_action(index)
  "Unable to start action at index: #{index}"
end

.unknown_inputObject



26
27
28
# File 'lib/pug/strings.rb', line 26

def self.unknown_input
  "Sorry, I don't understand that input."
end