Module: Jsm::Client::ClassMethods
- Defined in:
- lib/jsm/client.rb
Instance Method Summary collapse
-
#jsm_event_executor ⇒ Object
define type of event executor to be used.
- #jsm_use(state_machine) ⇒ Object
Instance Method Details
#jsm_event_executor ⇒ Object
define type of event executor to be used
42 43 44 |
# File 'lib/jsm/client.rb', line 42 def jsm_event_executor Jsm::EventExecutor::Base end |
#jsm_use(state_machine) ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'lib/jsm/client.rb', line 32 def jsm_use(state_machine) self.class_eval " def self.state_machine\n \#{state_machine}\n end\n EODEF\n Jsm::Machines.add_machines(self, state_machine.new(self))\nend\n", __FILE__, __LINE__ |