Module: FiniteMachine::Logger
- Defined in:
- lib/roseflow/finite_machine.rb
Overview
StateMachine
Instance Method Summary collapse
Instance Method Details
#report_transition(machine_name, event_name, from, to, *args) ⇒ Object
289 290 291 292 293 294 295 296 |
# File 'lib/roseflow/finite_machine.rb', line 289 def report_transition(machine_name, event_name, from, to, *args) = ["Transition: @machine=#{machine_name} @event=#{event_name} "] unless args.empty? << "@with=[#{args.join(",")}] " end << "#{from} -> #{to}" info(.join) end |