Exception: Haml::Error
- Defined in:
- lib/gems/haml-2.0.4/lib/haml/error.rb
Overview
An exception raised by Haml code.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#line ⇒ Object
readonly
By default, an error is taken to refer to the line of the template that was being processed when the exception was raised.
Instance Method Summary collapse
-
#initialize(message = nil, line = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, line = nil) ⇒ Error
Returns a new instance of Error.
11 12 13 14 |
# File 'lib/gems/haml-2.0.4/lib/haml/error.rb', line 11 def initialize( = nil, line = nil) super() @line = line end |
Instance Attribute Details
#line ⇒ Object (readonly)
By default, an error is taken to refer to the line of the template that was being processed when the exception was raised. However, if line is non-nil, it + 1 is used instead.
9 10 11 |
# File 'lib/gems/haml-2.0.4/lib/haml/error.rb', line 9 def line @line end |