example/micromachine_sample.rb in soveran-micromachine-0.0.2 vs example/micromachine_sample.rb in soveran-micromachine-0.0.4

- old
+ new

@@ -5,20 +5,20 @@ fsm.events[:ignore] = { :pending => :ignored } fsm.events[:reset] = { :confirmed => :pending, :ignored => :pending } puts "Should print Confirmed, Reset and Ignored." -fsm.fire(:confirm) do +if fsm.fire(:confirm) puts "Confirmed" end -fsm.fire(:ignore) do +if fsm.fire(:ignore) puts "Ignored" end -fsm.fire(:reset) do +if fsm.fire(:reset) puts "Reset" end -fsm.fire(:ignore) do +if fsm.fire(:ignore) puts "Ignored" end