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.



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

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.



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

def options
  @options
end

#valueObject (readonly)

Returns the value of attribute value.



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

def value
  @value
end