Class: MarkdownMetrics::Elements::Sentence::Base

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

Direct Known Subclasses

Bold, Code, Italic, Link, Text

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value:, start_at:) ⇒ Base

Returns a new instance of Base.



9
10
11
12
13
# File 'lib/markdown_metrics/elements/sentence/base.rb', line 9

def initialize(value:, start_at:)
  @value = value
  @start_at = start_at
  @skip_lines_until = 0
end

Instance Attribute Details

#skip_lines_untilObject

Returns the value of attribute skip_lines_until.



7
8
9
# File 'lib/markdown_metrics/elements/sentence/base.rb', line 7

def skip_lines_until
  @skip_lines_until
end

Instance Method Details

#attributesObject



15
16
17
# File 'lib/markdown_metrics/elements/sentence/base.rb', line 15

def attributes
  {}
end