Module: StateFlow::ActionClient
Instance Method Summary collapse
Instance Method Details
#action(method_name = nil, *method_args, &block) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/state_flow/action_client.rb', line 6 def action(method_name = nil, *method_args, &block) if method_name result = Action.new(self, method_name, *method_args, &block) @action = result result else @action end end |