Exception: LifecycleVM::Then::InvalidBranch

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, options) ⇒ InvalidBranch

Returns a new instance of InvalidBranch.



90
91
92
93
94
95
# File 'lib/lifecycle_vm/then.rb', line 90

def initialize(value, options)
  @value = value
  @options = options

  super("Invalid then option value #{value.inspect} in #{options}")
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



88
89
90
# File 'lib/lifecycle_vm/then.rb', line 88

def options
  @options
end

#valueObject (readonly)

Returns the value of attribute value.



88
89
90
# File 'lib/lifecycle_vm/then.rb', line 88

def value
  @value
end