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)
  message = ["Transition: @machine=#{machine_name} @event=#{event_name} "]
  unless args.empty?
    message << "@with=[#{args.join(",")}] "
  end
  message << "#{from} -> #{to}"
  info(message.join)
end