Class: LifecycleVM::Then::AnonymousState

Inherits:
Object
  • Object
show all
Defined in:
lib/lifecycle_vm/then.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ AnonymousState

Returns a new instance of AnonymousState.



35
36
37
38
# File 'lib/lifecycle_vm/then.rb', line 35

def initialize(options)
  @op = options[:do]
  @then = Then.new(options[:then])
end

Instance Attribute Details

#opObject (readonly)

Returns the value of attribute op.



33
34
35
# File 'lib/lifecycle_vm/then.rb', line 33

def op
  @op
end

#thenObject (readonly)

Returns the value of attribute then.



33
34
35
# File 'lib/lifecycle_vm/then.rb', line 33

def then
  @then
end

Instance Method Details

#call(vm) ⇒ Object



40
41
42
# File 'lib/lifecycle_vm/then.rb', line 40

def call(vm)
  vm.do_anonymous_op(@op, @then)
end