Exception: LifecycleVM::Then::InvalidCond
- Defined in:
- lib/lifecycle_vm/then.rb
Instance Attribute Summary collapse
-
#branches ⇒ Object
readonly
Returns the value of attribute branches.
-
#cond ⇒ Object
readonly
Returns the value of attribute cond.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
-
#vm ⇒ Object
readonly
Returns the value of attribute vm.
Instance Method Summary collapse
-
#initialize(value, cond, branches, vm) ⇒ InvalidCond
constructor
A new instance of InvalidCond.
Constructor Details
#initialize(value, cond, branches, vm) ⇒ InvalidCond
Returns a new instance of InvalidCond.
100 101 102 103 104 105 106 107 |
# File 'lib/lifecycle_vm/then.rb', line 100 def initialize(value, cond, branches, vm) @value = value @cond = cond @branches = branches @vm = vm super("Unhandled condition result #{value.inspect} returned by #{cond} in #{branches}. Current context #{@vm}") end |
Instance Attribute Details
#branches ⇒ Object (readonly)
Returns the value of attribute branches.
98 99 100 |
# File 'lib/lifecycle_vm/then.rb', line 98 def branches @branches end |
#cond ⇒ Object (readonly)
Returns the value of attribute cond.
98 99 100 |
# File 'lib/lifecycle_vm/then.rb', line 98 def cond @cond end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
98 99 100 |
# File 'lib/lifecycle_vm/then.rb', line 98 def value @value end |
#vm ⇒ Object (readonly)
Returns the value of attribute vm.
98 99 100 |
# File 'lib/lifecycle_vm/then.rb', line 98 def vm @vm end |