Class: Wikitxt::BaseNode
- Inherits:
-
Object
- Object
- Wikitxt::BaseNode
- Defined in:
- lib/wikitxt/node.rb
Direct Known Subclasses
BodyNode, CodeNode, ImageNode, LinkNode, ListNode, ParagraphNode, PreEndNode, PreNode, PreStartNode, TextNode
Instance Attribute Summary collapse
-
#attrs ⇒ Object
Returns the value of attribute attrs.
-
#children ⇒ Object
Returns the value of attribute children.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ BaseNode
constructor
A new instance of BaseNode.
Constructor Details
#initialize(**attrs) ⇒ BaseNode
Returns a new instance of BaseNode.
7 8 9 10 |
# File 'lib/wikitxt/node.rb', line 7 def initialize(**attrs) @attrs = attrs @children = [] end |
Instance Attribute Details
#attrs ⇒ Object
Returns the value of attribute attrs.
5 6 7 |
# File 'lib/wikitxt/node.rb', line 5 def attrs @attrs end |
#children ⇒ Object
Returns the value of attribute children.
5 6 7 |
# File 'lib/wikitxt/node.rb', line 5 def children @children end |