Exception: HamdownCore::IndentTracker::IndentMismatch
- Defined in:
- lib/hamdown_core/indent_tracker.rb
Instance Attribute Summary collapse
-
#current_level ⇒ Object
readonly
Returns the value of attribute current_level.
-
#indent_levels ⇒ Object
readonly
Returns the value of attribute indent_levels.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(current_level, indent_levels, lineno) ⇒ IndentMismatch
constructor
A new instance of IndentMismatch.
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_level ⇒ Object (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_levels ⇒ Object (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 |