Class: YamldiffError
- Inherits:
-
Object
- Object
- YamldiffError
- Defined in:
- lib/yamldiff/yamldiff_error.rb
Direct Known Subclasses
YamldiffKeyError, YamldiffKeyValueError, YamldiffKeyValueTypeError
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(key, context) ⇒ YamldiffError
constructor
A new instance of YamldiffError.
Constructor Details
#initialize(key, context) ⇒ YamldiffError
Returns a new instance of YamldiffError.
3 4 5 6 |
# File 'lib/yamldiff/yamldiff_error.rb', line 3 def initialize(key, context) @key = key @context = context end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
2 3 4 |
# File 'lib/yamldiff/yamldiff_error.rb', line 2 def context @context end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
2 3 4 |
# File 'lib/yamldiff/yamldiff_error.rb', line 2 def key @key end |