class RubyAi::Search::Vertex

Attributes

name[R]

Public Class Methods

new(name:) click to toggle source
# File lib/ruby_ai/search/vertex.rb, line 6
def initialize(name:)
  @name = name
end

Public Instance Methods

==(other) click to toggle source
# File lib/ruby_ai/search/vertex.rb, line 10
def ==(other)
  self.class == other.class && 
  @name == other.name
end
to_s() click to toggle source
# File lib/ruby_ai/search/vertex.rb, line 15
def to_s
  "vertex: #{name}"
end