Class: NxtStateMachine::Event::Names
- Inherits:
-
Object
- Object
- NxtStateMachine::Event::Names
- Defined in:
- lib/nxt_state_machine/event/names.rb
Class Method Summary collapse
Class Method Details
.build(name) ⇒ Object
3 4 5 |
# File 'lib/nxt_state_machine/event/names.rb', line 3 def self.build(name) [name, "#{name}!"].map(&:to_sym) end |
.set_state_method_map(name) ⇒ Object
7 8 9 |
# File 'lib/nxt_state_machine/event/names.rb', line 7 def self.set_state_method_map(name) build(name).zip([:set_state_with, :set_state_with!]) end |