Class: FSM::FSM::DSL

Inherits:
GenericDSL show all
Defined in:
lib/fsm-0.0.0/dsl.rb

Instance Method Summary collapse

Methods inherited from GenericDSL

#configure, #initialize, #method_missing

Constructor Details

This class inherits a constructor from FSM::GenericDSL

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FSM::GenericDSL

Instance Method Details

#states(*a) ⇒ Object Also known as: state


33
34
35
# File 'lib/fsm-0.0.0/dsl.rb', line 33

def states *a
  @object.add_state *a
end

#transition(*a, &b) ⇒ Object Also known as: transitioning


38
39
40
# File 'lib/fsm-0.0.0/dsl.rb', line 38

def transition *a, &b
  @object.add_transition *a, &b
end