Class: Docco::Parser::ContentNode
- Inherits:
-
Object
- Object
- Docco::Parser::ContentNode
- Defined in:
- lib/docco/parser/content_node.rb
Instance Method Summary collapse
-
#initialize(node, html) ⇒ ContentNode
constructor
A new instance of ContentNode.
- #inspect ⇒ Object
- #section? ⇒ Boolean
- #to_html ⇒ Object
Constructor Details
#initialize(node, html) ⇒ ContentNode
Returns a new instance of ContentNode.
6 7 8 9 |
# File 'lib/docco/parser/content_node.rb', line 6 def initialize(node, html) @node = node @html = html 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
13 |
# File 'lib/docco/parser/content_node.rb', line 13 def to_html = @html |