Exception: Statefully::State::Missing
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Statefully::State::Missing
- Defined in:
- lib/statefully/state.rb
Overview
class Failure
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
Instance Method Summary collapse
-
#initialize(field) ⇒ Missing
constructor
A new instance of Missing.
Constructor Details
#initialize(field) ⇒ Missing
Returns a new instance of Missing.
132 133 134 135 |
# File 'lib/statefully/state.rb', line 132 def initialize(field) @field = field super("field '#{field}' missing from state") end |
Instance Attribute Details
#field ⇒ Object (readonly)
Returns the value of attribute field.
130 131 132 |
# File 'lib/statefully/state.rb', line 130 def field @field end |