Method: Haml::Error#initialize

Defined in:
lib/haml/error.rb

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

Returns a new instance of Error.

Parameters:

  • message (String) (defaults to: nil)

    The error message

  • line (Fixnum) (defaults to: nil)

    See #line



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

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