Class: MarkdownMetrics::LineLowElement

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

Constant Summary collapse

ELEMENTS =
[
  MarkdownMetrics::Elements::Sentence::Bold,
  MarkdownMetrics::Elements::Sentence::Italic,
  MarkdownMetrics::Elements::Sentence::Link,
  MarkdownMetrics::Elements::Sentence::Code,
  MarkdownMetrics::Elements::Sentence::Text
].freeze

Class Method Summary collapse

Class Method Details

.match_element(character, next_character) ⇒ Object



13
14
15
16
17
# File 'lib/markdown_metrics/line_low_element.rb', line 13

def self.match_element(character, next_character)
  ELEMENTS.find do |element_class|
    element_class.match_element(character, next_character)
  end
end