Class: Gemtext::Document
- Inherits:
-
Object
- Object
- Gemtext::Document
- Defined in:
- lib/gemtext/document.rb
Overview
‘Gemtext::Document` represents a gemtext document or “page”. It consists of a sequence of `Gemtext::Node`s
Instance Attribute Summary collapse
-
#nodes ⇒ Object
readonly
Nodes.
Instance Method Summary collapse
-
#initialize ⇒ Document
constructor
A new instance of Document.
- #push(node) ⇒ Object
Constructor Details
#initialize ⇒ Document
Returns a new instance of Document.
19 20 21 |
# File 'lib/gemtext/document.rb', line 19 def initialize @nodes = [] end |
Instance Attribute Details
#nodes ⇒ Object (readonly)
Nodes
17 18 19 |
# File 'lib/gemtext/document.rb', line 17 def nodes @nodes end |