lib/stateflow/machine.rb in stateflow-0.1.2 vs lib/stateflow/machine.rb in stateflow-0.2.0

- old
+ new

@@ -23,10 +23,10 @@ @states[name.to_sym] = state end end def event(name, &transitions) - event = Stateflow::Event.new(name, &transitions) + event = Stateflow::Event.new(name, self, &transitions) @events[name.to_sym] = event end end -end \ No newline at end of file +end