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.
75 76 77 78 79 |
# File 'lib/org_mode.rb', line 75 def initialize(header, root_nodes, ) @header = header @footer = @root_nodes = root_nodes end |
Instance Attribute Details
#footer ⇒ Object
Returns the value of attribute footer.
65 66 67 |
# File 'lib/org_mode.rb', line 65 def @footer end |
#header ⇒ Object
Returns the value of attribute header.
65 66 67 |
# File 'lib/org_mode.rb', line 65 def header @header end |
#root_nodes ⇒ Object Also known as: children
Returns the value of attribute root_nodes.
65 66 67 |
# File 'lib/org_mode.rb', line 65 def root_nodes @root_nodes end |
Instance Method Details
#nodes ⇒ Object
81 82 83 |
# File 'lib/org_mode.rb', line 81 def nodes serialize_nodes(root_nodes) end |