Method: HTML::Text#initialize

Defined in:
lib/action_controller/vendor/html-scanner/html/node.rb

#initialize(parent, line, pos, content) ⇒ Text

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



219
220
221
222
# File 'lib/action_controller/vendor/html-scanner/html/node.rb', line 219

def initialize(parent, line, pos, content)
  super(parent, line, pos)
  @content = content
end