method

new

rails latest stable - Class: HTML::Tag

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v4.1.8) is shown here.

new(parent, line, pos, name, attributes, closing)
public

Create a new node as a child of the given parent, using the given content to describe the node. It will be parsed and the node name, attributes and closing status extracted.