Class CGIKit::HTMLParser::Node
In: lib/cgikit/parser.rb
Parent: Object

CGIKit::HTMLParser::Node stands for nodes of Template’s tree structure. Node is base class. Actually, its subclasses are used in tree structure.

Methods

<<   ==   []   append_to_response   cache_copy   empty?   invoke_action   last   new   reset   root   size   take_values_from_request   to_s  

Attributes

attributes  [RW] 
content  [RW] 
name  [RW] 
node  [RW] 
parent  [RW] 

Public Class methods

Public Instance methods

adds node as child.

returns true if `other` is the same.

returns the `index`th child node.

adds HTML to response object

returns true if `self` has no children.

invokes action method of node if node is CGIKit element.

returns the last child node.

returns the root node of Template’s tree structure. This must be the CGIKit::HTMLParser::RootNode.

returns the number of children.

sets values of request object to node if node is CGIKit element.

converts `self` to HTML

[Validate]