Exception: Haml::Error
Overview
An exception raised by Haml code.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#line ⇒ Fixnum
readonly
The line of the template on which the error occurred.
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/haml/error.rb', line 11 def initialize( = nil, line = nil) super() @line = line end |
Instance Attribute Details
#line ⇒ Fixnum (readonly)
The line of the template on which the error occurred.
7 8 9 |
# File 'lib/haml/error.rb', line 7 def line @line end |