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:



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

abstract :depth

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

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

Returns:

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


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

abstract :left

#parentAbstractPath

Returns:



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

abstract :parent

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

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

Returns:

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


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

abstract :right