Exception: HamdownCore::IndentTracker::IndentMismatch

Inherits:
Error
  • Object
show all
Defined in:
lib/hamdown_core/indent_tracker.rb

Instance Attribute Summary collapse

Attributes inherited from Error

#lineno

Instance Method Summary collapse

Constructor Details

#initialize(current_level, indent_levels, lineno) ⇒ IndentMismatch

Returns a new instance of IndentMismatch.



9
10
11
12
13
# File 'lib/hamdown_core/indent_tracker.rb', line 9

def initialize(current_level, indent_levels, lineno)
  super("Unexpected indent level: #{current_level}: indent_level=#{indent_levels}", lineno)
  @current_level = current_level
  @indent_levels = indent_levels
end

Instance Attribute Details

#current_levelObject (readonly)

Returns the value of attribute current_level.



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

def current_level
  @current_level
end

#indent_levelsObject (readonly)

Returns the value of attribute indent_levels.



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

def indent_levels
  @indent_levels
end