Exception: NestedText::Errors::ParseDictDuplicateKeyError

Inherits:
ParseError show all
Defined in:
lib/nestedtext/errors_internal.rb

Instance Attribute Summary

Attributes inherited from ParseError

#colno, #lineno, #message_raw

Instance Method Summary collapse

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