Class: RomanticText::HTMLNode

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/romantic_text/html_node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text) ⇒ HTMLNode

Returns a new instance of HTMLNode.



7
8
9
10
# File 'lib/romantic_text/html_node.rb', line 7

def initialize(text)
  super(text)
  @parent = nil
end

Instance Attribute Details

#parentObject

Returns the value of attribute parent.



11
12
13
# File 'lib/romantic_text/html_node.rb', line 11

def parent
  @parent
end