Exception: NestedText::Errors::InlineExtraCharactersAfterDelimiter
- Inherits:
-
ParseError
- Object
- StandardError
- NestedText::Error
- InternalError
- ParseError
- NestedText::Errors::InlineExtraCharactersAfterDelimiter
- Defined in:
- lib/nestedtext/errors.rb
Instance Attribute Summary
Attributes inherited from ParseError
Instance Method Summary collapse
-
#initialize(line, colno, extra_chars) ⇒ InlineExtraCharactersAfterDelimiter
constructor
A new instance of InlineExtraCharactersAfterDelimiter.
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 |