Exception: Haml::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Haml::Error
- Defined in:
- /var/build/temp/tmp.g5C1f6zb2g/4.0-0-0/ruby-haml/ruby-haml-3.1.6/lib/haml/error.rb
Overview
An exception raised by Haml code.
Direct Known Subclasses
Instance Attribute Summary (collapse)
-
- (Fixnum) line
readonly
The line of the template on which the error occurred.
Instance Method Summary (collapse)
-
- (Error) initialize(message = nil, line = nil)
constructor
A new instance of Error.
Constructor Details
- (Error) initialize(message = nil, line = nil)
A new instance of Error
11 12 13 14 |
# File '/var/build/temp/tmp.g5C1f6zb2g/4.0-0-0/ruby-haml/ruby-haml-3.1.6/lib/haml/error.rb', line 11
def initialize(message = nil, line = nil)
super(message)
@line = line
end
|
Instance Attribute Details
- (Fixnum) line (readonly)
The line of the template on which the error occurred.
7 8 9 |
# File '/var/build/temp/tmp.g5C1f6zb2g/4.0-0-0/ruby-haml/ruby-haml-3.1.6/lib/haml/error.rb', line 7
def line
@line
end
|