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.



182
183
184
# File 'lib/nestedtext/errors_internal.rb', line 182

def initialize(line)
  super(line, line.indentation, "duplicate key: #{line.attribs['key']}.")
end