Exception: NestedText::Errors::DictDuplicateKey

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

Instance Attribute Summary

Attributes inherited from ParseError

#colno, #lineno, #message_raw

Instance Method Summary collapse

Constructor Details

#initialize(line) ⇒ DictDuplicateKey

Returns a new instance of DictDuplicateKey.



169
170
171
# File 'lib/nestedtext/errors.rb', line 169

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