Exception: Statefully::State::Missing

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/statefully/state.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fieldObject (readonly)

Returns the value of attribute field.



82
83
84
# File 'lib/statefully/state.rb', line 82

def field
  @field
end