class DepCheck::Node

Attributes

edges[RW]
name[RW]

Public Class Methods

new(name) click to toggle source
# File lib/dep_check/Node.rb, line 6
def initialize(name)
  @name = name
  @edges = []
end

Public Instance Methods

==(other) click to toggle source
# File lib/dep_check/Node.rb, line 15
def ==(other)
  @name == other.name
end
addEdge(node) click to toggle source
# File lib/dep_check/Node.rb, line 11
def addEdge(node)
  @edges.push(node)
end
to_hash() click to toggle source
# File lib/dep_check/Node.rb, line 19
def to_hash
  {:name=>@name,:edges=>@edges}
end
to_s() click to toggle source
# File lib/dep_check/Node.rb, line 23
def to_s
  @name
end