Class: Docco::Parser::ContentNode
- Inherits:
-
Object
- Object
- Docco::Parser::ContentNode
- Defined in:
- lib/docco/parser/content_node.rb
Instance Method Summary collapse
-
#initialize(converter, node) ⇒ ContentNode
constructor
A new instance of ContentNode.
- #inspect ⇒ Object
- #section? ⇒ Boolean
- #to_html ⇒ Object
Constructor Details
#initialize(converter, node) ⇒ ContentNode
Returns a new instance of ContentNode.
6 7 8 9 |
# File 'lib/docco/parser/content_node.rb', line 6 def initialize(converter, node) @converter = converter @node = node end |
Instance Method Details
#inspect ⇒ Object
11 |
# File 'lib/docco/parser/content_node.rb', line 11 def inspect = %(<#{self.class}:#{@node.type} [#{@node.children}]>) |
#section? ⇒ Boolean
12 |
# File 'lib/docco/parser/content_node.rb', line 12 def section? = false |
#to_html ⇒ Object
14 15 16 |
# File 'lib/docco/parser/content_node.rb', line 14 def to_html @to_html ||= @converter.convert(@node, 0) end |