static public Method

Node.new(parent, line=0, pos=0)

Create a new node as a child of the given parent.

Source Code

# File action_controller/vendor/html-scanner/html/node.rb, line 72
def initialize(parent, line=0, pos=0)
  @parent = parent
  @children = []
  @line, @position = line, pos
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.