examples/traffic_light.rb in state_machine-1.1.2 vs examples/traffic_light.rb in state_machine-1.2.0

- old
+ new

@@ -1,4 +1,6 @@ +require 'state_machine' + class TrafficLight state_machine :initial => :stop do event :cycle do transition :stop => :proceed, :proceed => :caution, :caution => :stop end