Class: OrgMode::File
Instance Attribute Summary collapse
-
#footer ⇒ Object
Returns the value of attribute footer.
-
#header ⇒ Object
Returns the value of attribute header.
-
#root_nodes ⇒ Object
(also: #children)
Returns the value of attribute root_nodes.
Instance Method Summary collapse
-
#initialize(header, root_nodes, footer) ⇒ File
constructor
A new instance of File.
- #nodes ⇒ Object
Methods included from FileInterface
#scheduled_nodes, #select_by_title
Constructor Details
#initialize(header, root_nodes, footer) ⇒ File
Returns a new instance of File.
76 77 78 79 80 |
# File 'lib/org_mode.rb', line 76 def initialize(header, root_nodes, ) @header = header = @root_nodes = root_nodes end |
Instance Attribute Details
#footer ⇒ Object
Returns the value of attribute footer.
67 68 69 |
# File 'lib/org_mode.rb', line 67 def end |
#header ⇒ Object
Returns the value of attribute header.
67 68 69 |
# File 'lib/org_mode.rb', line 67 def header @header end |
#root_nodes ⇒ Object Also known as: children
Returns the value of attribute root_nodes.
67 68 69 |
# File 'lib/org_mode.rb', line 67 def root_nodes @root_nodes end |
Instance Method Details
#nodes ⇒ Object
82 83 84 |
# File 'lib/org_mode.rb', line 82 def nodes serialize_nodes(root_nodes) end |