Class Opensteam::StateMachine::Observer
In: lib/opensteam/state_machine.rb
Parent: Object

Methods

exc   new  

Attributes

code  [RW] 
receiver  [RW] 

Public Class methods

[Source]

    # File lib/opensteam/state_machine.rb, line 80
80:       def initialize( receiver, &block )
81:         @receiver = receiver
82:         @code = block
83:       end

Public Instance methods

[Source]

    # File lib/opensteam/state_machine.rb, line 85
85:       def exc( instance )
86:         @code.call( instance )
87:         #        @code.bind( instance ).call
88:       end

[Validate]