Exception: FastHaml::IndentTracker::IndentMismatch

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, lineno) ⇒ IndentMismatch

Returns a new instance of IndentMismatch.



6
7
8
9
# File 'lib/fast_haml/indent_tracker.rb', line 6

def initialize(message, lineno)
  super("#{message} at line #{lineno}")
  @lineno = lineno
end

Instance Attribute Details

#linenoObject (readonly)

Returns the value of attribute lineno.



4
5
6
# File 'lib/fast_haml/indent_tracker.rb', line 4

def lineno
  @lineno
end