Sha256: f42e171a991adf57b40693525ce81261c7b7a578f8bfc8ef3a370451a1f92520

Contents?: true

Size: 242 Bytes

Versions: 3

Compression:

Stored size: 242 Bytes

Contents

class AutoShop
  state_machine :initial => :available do
    event :tow_vehicle do
      transition :to => :busy, :from => :available
    end
    
    event :fix_vehicle do
      transition :to => :available, :from => :busy
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
state_machine-0.5.2 examples/auto_shop.rb
state_machine-0.5.0 examples/auto_shop.rb
state_machine-0.5.1 examples/auto_shop.rb