class AsciiTree::Relationship

Attributes

child_word[R]
edge[R]
parent_word[R]

Public Class Methods

new(parent_word:, edge:, child_word:) click to toggle source
# File lib/ascii_tree/relationship.rb, line 5
def initialize(parent_word:, edge:, child_word:)
  @parent_word = parent_word
  @edge        = edge
  @child_word  = child_word
end

Public Instance Methods

==(other) click to toggle source
# File lib/ascii_tree/relationship.rb, line 11
def ==(other)
  parent_word == other.parent_word &&
    edge == other.edge &&
    child_word == other.child_word
end