Exception: NestedText::Errors::ParseDictDuplicateKeyError
- Inherits:
-
ParseError
- Object
- StandardError
- NestedText::Error
- InternalError
- ParseError
- NestedText::Errors::ParseDictDuplicateKeyError
- Defined in:
- lib/nestedtext/errors_internal.rb
Instance Attribute Summary
Attributes inherited from ParseError
Instance Method Summary collapse
-
#initialize(line) ⇒ ParseDictDuplicateKeyError
constructor
A new instance of ParseDictDuplicateKeyError.
Constructor Details
#initialize(line) ⇒ ParseDictDuplicateKeyError
Returns a new instance of ParseDictDuplicateKeyError.
164 165 166 |
# File 'lib/nestedtext/errors_internal.rb', line 164 def initialize(line) super(line, line.indentation, "duplicate key: #{line.attribs["key"]}.") end |