Sha256: 71642a7958efb6396ecf21c8871608adc355d32881a8a99b4877a78b1607371b

Contents?: true

Size: 165 Bytes

Versions: 54

Compression:

Stored size: 165 Bytes

Contents

class Switch
  state_machine do
    event :turn_on do
      transition all => :on
    end
    
    event :turn_off do
      transition all => :off
    end
  end
end

Version data entries

54 entries across 54 versions & 7 rubygems

Version Path
joelind-state_machine-0.8.1 test/classes/switch.rb
pluginaweek-state_machine-0.7.6 test/classes/switch.rb
pluginaweek-state_machine-0.8.0 test/classes/switch.rb
state_machine-1.1.2 test/files/switch.rb
state_machine-1.1.1 test/files/switch.rb
state_machine-1.1.0 test/files/switch.rb
state_machine-1.0.3 test/files/switch.rb
hsume2-state_machine-1.0.5 test/files/switch.rb
state_machine-1.0.2 test/files/switch.rb
hsume2-state_machine-1.0.4 test/files/switch.rb
hsume2-state_machine-1.0.3 test/files/switch.rb
hsume2-state_machine-1.0.2 test/files/switch.rb
hsume2-state_machine-1.0.1 test/files/switch.rb
state_machine-1.0.1 test/files/switch.rb
state_machine-1.0.0 test/files/switch.rb
state_machine-0.10.4 test/files/switch.rb
state_machine-0.10.3 test/files/switch.rb
state_machine-0.10.2 test/files/switch.rb
state_machine-0.10.1 test/files/switch.rb
state_machine-0.10.0 test/files/switch.rb