Exception: JsonSpec::EnumerableExpected
- Defined in:
- lib/json_spec/errors.rb
Instance Attribute Summary collapse
-
#actual_value ⇒ Object
readonly
Returns the value of attribute actual_value.
Instance Method Summary collapse
-
#initialize(actual_value) ⇒ EnumerableExpected
constructor
A new instance of EnumerableExpected.
- #to_s ⇒ Object
Constructor Details
#initialize(actual_value) ⇒ EnumerableExpected
Returns a new instance of EnumerableExpected.
38 39 40 |
# File 'lib/json_spec/errors.rb', line 38 def initialize(actual_value) @actual_value = actual_value end |
Instance Attribute Details
#actual_value ⇒ Object (readonly)
Returns the value of attribute actual_value.
36 37 38 |
# File 'lib/json_spec/errors.rb', line 36 def actual_value @actual_value end |
Instance Method Details
#to_s ⇒ Object
42 43 44 |
# File 'lib/json_spec/errors.rb', line 42 def to_s "Enumerable expected, got #{actual_value.inspect}" end |