class AsciiTree::Node

Attributes

children[R]
identity[R]
parent[R]
value[R]

Public Class Methods

new(identity:, value:, parent:, children:) click to toggle source
# File lib/ascii_tree/node.rb, line 5
def initialize(identity:, value:, parent:, children:)
  @identity = identity
  @value    = value
  @parent   = parent
  @children = children
end

Public Instance Methods

==(other) click to toggle source
# File lib/ascii_tree/node.rb, line 12
def ==(other)
  identity == other.identity &&
    value == other.value &&
    parent == other.parent &&
    children == other.children
end