Exception: Statefully::State::Missing
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Statefully::State::Missing
- Defined in:
- lib/statefully/state.rb
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.
84 85 86 87 |
# File 'lib/statefully/state.rb', line 84 def initialize(field) @field = field super("field '#{field}' missing from state") end |
Instance Attribute Details
#field ⇒ Object (readonly)
Returns the value of attribute field.
82 83 84 |
# File 'lib/statefully/state.rb', line 82 def field @field end |