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:



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

abstract :depth

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

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

Returns:

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


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

abstract :left

#parentAbstractPath

Returns:



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

abstract :parent

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

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

Returns:

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


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

abstract :right