Class: Docco::Parser::ContentNode

Inherits:
Object
  • Object
show all
Defined in:
lib/docco/parser/content_node.rb

Instance Method Summary collapse

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

#inspectObject



11
# File 'lib/docco/parser/content_node.rb', line 11

def inspect = %(<#{self.class}:#{@node.type} [#{@node.children}]>)

#section?Boolean

Returns:

  • (Boolean)


12
# File 'lib/docco/parser/content_node.rb', line 12

def section? = false

#to_htmlObject



13
# File 'lib/docco/parser/content_node.rb', line 13

def to_html = @html