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.



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

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

Instance Attribute Details

#opObject (readonly)

Returns the value of attribute op.



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

def op
  @op
end

#thenObject (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