Class: Stupidedi::Zipper::AbstractPath
- Inherits:
-
Object
- Object
- 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
32 |
# File 'lib/stupidedi/zipper/path.rb', line 32 abstract :depth |
#left ⇒ Array<#leaf?, #children, #copy>
Contains the node’s leftward siblings, sorted nearest to furthest
16 |
# File 'lib/stupidedi/zipper/path.rb', line 16 abstract :left |
#right ⇒ Array<#leaf?, #children, #copy>
Contains the node’s rightward siblings, sorted nearest to furthest
21 |
# File 'lib/stupidedi/zipper/path.rb', line 21 abstract :right |