Exception: NestedText::Errors::ParseInlineDictKeySyntaxError

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, colno, wrong_char) ⇒ ParseInlineDictKeySyntaxError

Returns a new instance of ParseInlineDictKeySyntaxError.



102
103
104
# File 'lib/nestedtext/errors_internal.rb', line 102

def initialize(line, colno, wrong_char)
  super(line, line.indentation + colno, "expected ‘:’, found ‘#{wrong_char}’.")
end