Class: Stupidedi::Zipper::AbstractPath
- Defined in:
- lib/stupidedi/zipper/path.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#depth ⇒ Integer
Distance from the root node.
-
#left ⇒ Array<#leaf?, #children, #copy>
Contains the node’s leftward siblings, sorted nearest to furthest.
- #parent ⇒ AbstractPath
-
#right ⇒ Array<#leaf?, #children, #copy>
Contains the node’s rightward siblings, sorted nearest to furthest.
Instance Method Details
#depth ⇒ Integer
Distance from the root node
34 |
# File 'lib/stupidedi/zipper/path.rb', line 34 abstract :depth |
#left ⇒ Array<#leaf?, #children, #copy>
Contains the node’s leftward siblings, sorted nearest to furthest
18 |
# File 'lib/stupidedi/zipper/path.rb', line 18 abstract :left |
#right ⇒ Array<#leaf?, #children, #copy>
Contains the node’s rightward siblings, sorted nearest to furthest
23 |
# File 'lib/stupidedi/zipper/path.rb', line 23 abstract :right |