Exception: FastHaml::SyntaxError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/fast_haml/syntax_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, lineno)
  super("#{message} at line #{lineno}")
  @lineno = lineno
end

Instance Attribute Details

#linenoObject (readonly)

Returns the value of attribute lineno.



3
4
5
# File 'lib/fast_haml/syntax_error.rb', line 3

def lineno
  @lineno
end