Exception: Haml::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/haml/error.rb

Overview

An exception raised by Haml code.

Direct Known Subclasses

SyntaxError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, line = nil) ⇒ Error



11
12
13
14
# File 'lib/haml/error.rb', line 11

def initialize(message = nil, line = nil)
  super(message)
  @line = line
end

Instance Attribute Details

#lineFixnum (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