Exception: NestedText::Errors::DumpError
- Inherits:
-
InternalError
- Object
- StandardError
- NestedText::Error
- InternalError
- NestedText::Errors::DumpError
- Defined in:
- lib/nestedtext/errors_internal.rb
Direct Known Subclasses
DumpCyclicReferencesDetectedError, DumpHashKeyStrictStringError, DumpUnsupportedTypeError
Instance Attribute Summary collapse
-
#culprit ⇒ Object
readonly
Returns the value of attribute culprit.
Instance Method Summary collapse
-
#initialize(culprit, message) ⇒ DumpError
constructor
A new instance of DumpError.
Constructor Details
#initialize(culprit, message) ⇒ DumpError
Returns a new instance of DumpError.
220 221 222 223 224 225 |
# File 'lib/nestedtext/errors_internal.rb', line 220 def initialize(culprit, ) # Note, both line and column number are 0-indexed. # But for human display we make them 1-indexed. @culprit = culprit super() end |
Instance Attribute Details
#culprit ⇒ Object (readonly)
Returns the value of attribute culprit.
218 219 220 |
# File 'lib/nestedtext/errors_internal.rb', line 218 def culprit @culprit end |