Class: Docco::Parser
- Inherits:
-
Object
- Object
- Docco::Parser
- Defined in:
- lib/docco/parser.rb,
lib/docco/parser/root.rb,
lib/docco/parser/section.rb,
lib/docco/parser/content_node.rb
Defined Under Namespace
Classes: ContentNode, Renderer, Root, Section
Instance Method Summary collapse
-
#initialize(text, input: 'GFM') ⇒ Parser
constructor
A new instance of Parser.
- #structure ⇒ Object
Constructor Details
#initialize(text, input: 'GFM') ⇒ Parser
Returns a new instance of Parser.
32 33 34 35 |
# File 'lib/docco/parser.rb', line 32 def initialize(text, input: 'GFM') @text = text @input = input end |
Instance Method Details
#structure ⇒ Object
37 38 39 |
# File 'lib/docco/parser.rb', line 37 def structure @structure ||= build end |