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:

  • (Integer)


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

abstract :depth

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

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

Returns:

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


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

abstract :left

#parentAbstractPath

Returns:



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

abstract :parent

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

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

Returns:

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


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

abstract :right