Class: Stupidedi::Zipper::AbstractPath

Inherits:
Object
  • Object
show all
Defined in:
lib/stupidedi/zipper/path.rb

Direct Known Subclasses

Hole

Instance Method Summary collapse

Instance Method Details

#depthInteger

Distance from the root node

Returns:



34
# File 'lib/stupidedi/zipper/path.rb', line 34

abstract :depth

#leftArray<#leaf?, #children, #copy>

Contains the node’s leftward siblings, sorted nearest to furthest

Returns:

  • (Array<#leaf?, #children, #copy>)


18
# File 'lib/stupidedi/zipper/path.rb', line 18

abstract :left

#parentAbstractPath

Returns:



13
# File 'lib/stupidedi/zipper/path.rb', line 13

abstract :parent

#rightArray<#leaf?, #children, #copy>

Contains the node’s rightward siblings, sorted nearest to furthest

Returns:

  • (Array<#leaf?, #children, #copy>)


23
# File 'lib/stupidedi/zipper/path.rb', line 23

abstract :right