Class: Pug::Results

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

Overview

Convenience methods for common Results

Class Method Summary collapse

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_actionsObject



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

def self.missing_actions
  Types::Result.error(Strings.no_actions)
end

.no_action_runningObject



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

def self.no_action_running
  Types::Result.error(Strings.no_action_running)
end

.unknown_inputObject



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

def self.unknown_input
  Types::Result.error(Strings.unknown_input)
end