Exception: Liquid::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Liquid::Error
- Defined in:
- lib/liquid/errors.rb
Instance Attribute Summary collapse
-
#line_number ⇒ Object
Returns the value of attribute line_number.
-
#markup_context ⇒ Object
Returns the value of attribute markup_context.
-
#template_name ⇒ Object
Returns the value of attribute template_name.
Instance Method Summary collapse
Instance Attribute Details
#line_number ⇒ Object
Returns the value of attribute line_number.
5 6 7 |
# File 'lib/liquid/errors.rb', line 5 def line_number @line_number end |
#markup_context ⇒ Object
Returns the value of attribute markup_context.
7 8 9 |
# File 'lib/liquid/errors.rb', line 7 def markup_context @markup_context end |
#template_name ⇒ Object
Returns the value of attribute template_name.
6 7 8 |
# File 'lib/liquid/errors.rb', line 6 def template_name @template_name end |
Instance Method Details
#to_s(with_prefix = true) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/liquid/errors.rb', line 9 def to_s(with_prefix = true) str = +"" str << if with_prefix str << super() if markup_context str << " " str << markup_context end str end |