Exception: NestedText::Errors::ParseInlineDictSyntaxError

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

Returns a new instance of ParseInlineDictSyntaxError.



81
82
83
# File 'lib/nestedtext/errors.rb', line 81

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