static public Method

Text.new(parent, line, pos, content)

Creates a new text node as a child of the given parent, with the given content.

Source Code

# File action_controller/vendor/html-scanner/html/node.rb, line 212
def initialize(parent, line, pos, content)
  super(parent, line, pos)
  @content = content
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.