Class: MarkdownMetrics::Elements::Base
- Inherits:
-
Object
- Object
- MarkdownMetrics::Elements::Base
- Defined in:
- lib/markdown_metrics/elements/base.rb
Direct Known Subclasses
MarkdownMetrics::Elements::Block::List, MarkdownMetrics::Elements::Block::Pre, MarkdownMetrics::Elements::Block::Quote, MarkdownMetrics::Elements::Block::Table, Inline::EmptyLine, Inline::H1, Inline::H2, Inline::H3, Inline::H4, Inline::H5, Inline::H6, Inline::Image, Inline::Paragraph, Inline::Pre
Instance Attribute Summary collapse
-
#skip_lines_until ⇒ Object
readonly
Returns the value of attribute skip_lines_until.
Instance Method Summary collapse
- #attributes ⇒ Object
-
#initialize(lines:, start_at:) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(lines:, start_at:) ⇒ Base
Returns a new instance of Base.
6 7 8 9 10 |
# File 'lib/markdown_metrics/elements/base.rb', line 6 def initialize(lines:, start_at:) @lines = lines @start_at = start_at @skip_lines_until = 0 end |
Instance Attribute Details
#skip_lines_until ⇒ Object (readonly)
Returns the value of attribute skip_lines_until.
4 5 6 |
# File 'lib/markdown_metrics/elements/base.rb', line 4 def skip_lines_until @skip_lines_until end |
Instance Method Details
#attributes ⇒ Object
12 13 14 |
# File 'lib/markdown_metrics/elements/base.rb', line 12 def attributes {} end |