Class: Pug::Strings
- Inherits:
-
Object
- Object
- Pug::Strings
- Defined in:
- lib/pug/strings.rb
Overview
Convenience methods for user facing strings
Class Method Summary collapse
- .enter_inputs(action_name) ⇒ Object
- .error_occurred ⇒ Object
- .finished_running(action_name) ⇒ Object
- .help(commands) ⇒ Object
- .list_description ⇒ Object
- .no_action_running ⇒ Object
- .no_actions ⇒ Object
- .no_help_commands ⇒ Object
- .unable_to_start_action(index) ⇒ Object
- .unknown_input ⇒ Object
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_occurred ⇒ Object
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_description ⇒ Object
42 43 44 |
# File 'lib/pug/strings.rb', line 42 def self.list_description 'Displays all your available pug-bot actions' end |
.no_action_running ⇒ Object
6 7 8 |
# File 'lib/pug/strings.rb', line 6 def self.no_action_running 'There is no action currently running.' end |
.no_actions ⇒ Object
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_commands ⇒ Object
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_input ⇒ Object
26 27 28 |
# File 'lib/pug/strings.rb', line 26 def self.unknown_input "Sorry, I don't understand that input." end |