Class: LifecycleVM::Then::AnonymousState
- Inherits:
-
Object
- Object
- LifecycleVM::Then::AnonymousState
- Defined in:
- lib/lifecycle_vm/then.rb
Instance Attribute Summary collapse
-
#op ⇒ Object
readonly
Returns the value of attribute op.
-
#then ⇒ Object
readonly
Returns the value of attribute then.
Instance Method Summary collapse
- #call(vm) ⇒ Object
-
#initialize(options) ⇒ AnonymousState
constructor
A new instance of AnonymousState.
Constructor Details
#initialize(options) ⇒ AnonymousState
Returns a new instance of AnonymousState.
34 35 36 37 |
# File 'lib/lifecycle_vm/then.rb', line 34 def initialize() @op = [:do] @then = Then.new([:then]) end |
Instance Attribute Details
#op ⇒ Object (readonly)
Returns the value of attribute op.
32 33 34 |
# File 'lib/lifecycle_vm/then.rb', line 32 def op @op end |
#then ⇒ Object (readonly)
Returns the value of attribute then.
32 33 34 |
# File 'lib/lifecycle_vm/then.rb', line 32 def then @then end |
Instance Method Details
#call(vm) ⇒ Object
39 40 41 |
# File 'lib/lifecycle_vm/then.rb', line 39 def call(vm) vm.do_anonymous_op(@op, @then) end |