class Herb::Errors::MissingOpeningTagError
def initialize(type, location, message, closing_tag)
def initialize(type, location, message, closing_tag) super(type, location, message) @closing_tag = closing_tag end
def inspect
def inspect tree_inspect.rstrip.gsub(/\s+$/, "") end
def to_hash
def to_hash super.merge({ closing_tag: closing_tag, }) end
def tree_inspect(indent = 0)
def tree_inspect(indent = 0) output = +"" output += %(@ #{error_name} #{location.tree_inspect}\n) output += %(├── message: #{message.inspect}\n) output += %(└── closing_tag: #{closing_tag ? closing_tag.tree_inspect : "∅"}\n) output += %(\n) output.gsub(/^/, " " * indent) end