Exception: NestedText::Errors::InlineExtraCharactersAfterDelimiter

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

Returns a new instance of InlineExtraCharactersAfterDelimiter.



112
113
114
115
# File 'lib/nestedtext/errors.rb', line 112

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