Class: Pug::Results
- Inherits:
-
Object
- Object
- Pug::Results
- Defined in:
- lib/pug/results.rb
Overview
Convenience methods for common Results
Class Method Summary collapse
- .enter_inputs(action_name) ⇒ Object
- .invalid_index(index) ⇒ Object
- .missing_actions ⇒ Object
- .no_action_running ⇒ Object
- .unknown_input ⇒ Object
Class Method Details
.enter_inputs(action_name) ⇒ Object
18 19 20 |
# File 'lib/pug/results.rb', line 18 def self.enter_inputs(action_name) Types::Result.info(Strings.enter_inputs(action_name)) end |
.invalid_index(index) ⇒ Object
14 15 16 |
# File 'lib/pug/results.rb', line 14 def self.invalid_index(index) Types::Result.error(Strings.unable_to_start_action(index)) end |
.missing_actions ⇒ Object
10 11 12 |
# File 'lib/pug/results.rb', line 10 def self.missing_actions Types::Result.error(Strings.no_actions) end |
.no_action_running ⇒ Object
22 23 24 |
# File 'lib/pug/results.rb', line 22 def self.no_action_running Types::Result.error(Strings.no_action_running) end |
.unknown_input ⇒ Object
6 7 8 |
# File 'lib/pug/results.rb', line 6 def self.unknown_input Types::Result.error(Strings.unknown_input) end |