Exception: Hamlit::Error

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

Direct Known Subclasses

FilterNotFound, InternalError, SyntaxError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Error.



6
7
8
9
# File 'lib/hamlit/error.rb', line 6

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

Instance Attribute Details

#lineObject (readonly)

Returns the value of attribute line.



4
5
6
# File 'lib/hamlit/error.rb', line 4

def line
  @line
end