Exception: NestedText::Errors::ParseInlineExtraCharactersAfterDelimiterError

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, extra_chars) ⇒ ParseInlineExtraCharactersAfterDelimiterError

Returns a new instance of ParseInlineExtraCharactersAfterDelimiterError.



126
127
128
129
# File 'lib/nestedtext/errors_internal.rb', line 126

def initialize(line, colno, extra_chars)
  character_str = extra_chars.length > 1 ? 'characters' : 'character'
  super(line, line.indentation + colno, "extra #{character_str} after closing delimiter: ‘#{extra_chars}’.")
end