Exception: FastHaml::SyntaxError
- Inherits:
-
StandardError
- Object
- StandardError
- FastHaml::SyntaxError
- Defined in:
- lib/fast_haml/syntax_error.rb
Instance Attribute Summary collapse
-
#lineno ⇒ Object
readonly
Returns the value of attribute lineno.
Instance Method Summary collapse
-
#initialize(message, lineno) ⇒ SyntaxError
constructor
A new instance of SyntaxError.
Constructor Details
#initialize(message, lineno) ⇒ SyntaxError
Returns a new instance of SyntaxError.
5 6 7 8 |
# File 'lib/fast_haml/syntax_error.rb', line 5 def initialize(, lineno) super("#{} at line #{lineno}") @lineno = lineno end |
Instance Attribute Details
#lineno ⇒ Object (readonly)
Returns the value of attribute lineno.
3 4 5 |
# File 'lib/fast_haml/syntax_error.rb', line 3 def lineno @lineno end |