Class: MarkdownMetrics::Elements::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/markdown_metrics/elements/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_untilObject (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

#attributesObject



12
13
14
# File 'lib/markdown_metrics/elements/base.rb', line 12

def attributes
  {}
end