class Liquid::Error
Attributes
Public Instance Methods
Source
# File lib/liquid/errors.rb, line 9 def to_s(with_prefix = true) str = +"" str << message_prefix if with_prefix str << super() if markup_context str << " " str << markup_context end str end
Calls superclass method
Private Instance Methods
Source
# File lib/liquid/errors.rb, line 24 def message_prefix str = +"" str << if is_a?(SyntaxError) "Liquid syntax error" else "Liquid error" end if line_number str << " (" str << template_name << " " if template_name str << "line " << line_number.to_s << ")" end str << ": " str end