Class: QuietQuality::Tools::MarkdownLint::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/quiet_quality/tools/markdown_lint/parser.rb

Instance Method Summary collapse

Constructor Details

#initialize(text) ⇒ Parser

Returns a new instance of Parser.



5
6
7
# File 'lib/quiet_quality/tools/markdown_lint/parser.rb', line 5

def initialize(text)
  @text = text
end

Instance Method Details

#messagesObject



9
10
11
12
13
# File 'lib/quiet_quality/tools/markdown_lint/parser.rb', line 9

def messages
  return @_messages if defined?(@_messages)
  messages = content.map { |entry| message_for_entry(entry) }
  @_messages = Messages.new(messages)
end