Sha256: 9e58996411934657a60fceaef9c975893db124ed247b354247ee48f49b67f265
Contents?: true
Size: 607 Bytes
Versions: 32
Compression:
Stored size: 607 Bytes
Contents
class SuperClass include AASM aasm do state :read state :ended event :foo do transitions :to => :ended, :from => [:read] end end def update_state if may_foo? foo! end end end class SuperClassMultiple include AASM aasm(:left) do state :read state :ended event :foo do transitions :to => :ended, :from => [:read] end end aasm(:right) do state :opened state :closed event :close do transitions :to => :closed, :from => [:opened] end end def update_state if may_foo? foo! end end end
Version data entries
32 entries across 32 versions & 1 rubygems