Class: Docs::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/docs/core/parser.rb

Instance Method Summary collapse

Constructor Details

#initialize(content) ⇒ Parser

Returns a new instance of Parser


3
4
5
# File 'lib/docs/core/parser.rb', line 3

def initialize(content)
  @content = content
end

Instance Method Details

#htmlObject


7
8
9
# File 'lib/docs/core/parser.rb', line 7

def html
  @html ||= document? ? parse_as_document : parse_as_fragment
end