Exception: Haml::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Haml::Error
- Defined in:
- lib/haml/error.rb
Overview
TODO: unify Haml::Error (former Hamlit::Error) and Haml::HamlError (former Haml::Error)
Direct Known Subclasses
Instance Attribute Summary collapse
-
#line ⇒ Object
readonly
Returns the value of attribute line.
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.
7 8 9 10 |
# File 'lib/haml/error.rb', line 7 def initialize( = nil, line = nil) super() @line = line end |
Instance Attribute Details
#line ⇒ Object (readonly)
Returns the value of attribute line.
5 6 7 |
# File 'lib/haml/error.rb', line 5 def line @line end |