Method: Tree.child
- Defined in:
- lib/xiki/tree.rb
.child ⇒ Object
bar
1627 1628 1629 1630 1631 1632 1633 1634 |
# File 'lib/xiki/tree.rb', line 1627 def self.child following_line = Line.value 2 # If indent is one greater, it is a child if Line.indent.size + 2 == Line.indent(following_line).size return Line.without_label(:line=>following_line) end nil end |