Exception: ReSorcery::Error::NonHashAssignError
- Inherits:
-
ReSorceryError
- Object
- StandardError
- ReSorceryError
- ReSorcery::Error::NonHashAssignError
- Defined in:
- lib/re_sorcery/error.rb
Instance Method Summary collapse
-
#initialize(value) ⇒ NonHashAssignError
constructor
A new instance of NonHashAssignError.
- #message ⇒ Object
Constructor Details
#initialize(value) ⇒ NonHashAssignError
Returns a new instance of NonHashAssignError.
12 13 14 15 |
# File 'lib/re_sorcery/error.rb', line 12 def initialize(value) super(value) @value = value end |
Instance Method Details
#message ⇒ Object
17 18 19 |
# File 'lib/re_sorcery/error.rb', line 17 def "#assign can only be used when the @value is a Hash, but was a(n) #{@value.class}" end |