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
28 |
# File 'lib/stupidedi/zipper/path.rb', line 28 abstract :depth |
#left ⇒ Array<#leaf?, #children, #copy>
Contains the node’s leftward siblings, sorted nearest to furthest
12 |
# File 'lib/stupidedi/zipper/path.rb', line 12 abstract :left |
#right ⇒ Array<#leaf?, #children, #copy>
Contains the node’s rightward siblings, sorted nearest to furthest
17 |
# File 'lib/stupidedi/zipper/path.rb', line 17 abstract :right |