Class: RomanticText::HTMLNode
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- RomanticText::HTMLNode
- Defined in:
- lib/romantic_text/html_node.rb
Instance Attribute Summary collapse
-
#parent ⇒ Object
Returns the value of attribute parent.
Instance Method Summary collapse
-
#initialize(text) ⇒ HTMLNode
constructor
A new instance of HTMLNode.
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
#parent ⇒ Object
Returns the value of attribute parent.
11 12 13 |
# File 'lib/romantic_text/html_node.rb', line 11 def parent @parent end |