Exception: NestedText::Errors::LineTagUnknown

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, tag) ⇒ LineTagUnknown

Returns a new instance of LineTagUnknown.



58
59
60
# File 'lib/nestedtext/errors.rb', line 58

def initialize(line, tag)
  super(line, line.indentation, "The Line tag #{tag} is not among the allowed ones #{Line::ALLOWED_LINE_TAGS}")
end