Sha256: e546378500a1e2c9825cb1ba6a50b6de079e492b8406c434475446eefd622d36
Contents?: true
Size: 346 Bytes
Versions: 2
Compression:
Stored size: 346 Bytes
Contents
class Car < Vehicle state_machine do event :reverse do transition [:parked, :idling, :first_gear] => :backing_up end event :park do transition backing_up: :parked end event :idle do transition backing_up: :idling end event :shift_up do transition backing_up: :first_gear end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
state_machines-0.0.2 | spec/internal/app/models/car.rb |
state_machines-0.0.1 | spec/internal/app/models/car.rb |