Sha256: f223475543e6416ee494465902439e014721138de00a19ed6afdf18c292e9fe3
Contents?: true
Size: 357 Bytes
Versions: 4
Compression:
Stored size: 357 Bytes
Contents
module Hobo module Lifecycles class State < Struct.new(:name, :on_enter, :transitions_in, :transitions_out) include Actions def initialize(*args) super self.transitions_in = [] self.transitions_out = [] end def activate!(record) fire_event(record, on_enter) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
hobo-0.8.1 | lib/hobo/lifecycles/state.rb |
hobo-0.8.2 | lib/hobo/lifecycles/state.rb |
hobo-0.8.3 | lib/hobo/lifecycles/state.rb |
hobo-0.8 | lib/hobo/lifecycles/state.rb |