Sha256: 5d02d7af8993e62691bb7a86a489b9a35d1ae9df2658d1ac90d6ce4822013dc2
Contents?: true
Size: 519 Bytes
Versions: 1
Compression:
Stored size: 519 Bytes
Contents
module BigMachine class State attr_reader :stateful def initialize(stateful) @stateful = stateful end def self.transition_methods public_instance_methods - State.public_instance_methods end def transition_to(state_class, *args, &block) @stateful.transition_to(state_class, *args, &block) end def workflow_is(name) @stateful.workflow == name end def enter(*args, &block) true end def exit(*args, &block) true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
big_machine-1.1.0 | lib/big_machine/state.rb |