Sha256: cd31a23e1bfa81cfe93a5a0742347a62fc330385de421ace4367fe0453cd7647
Contents?: true
Size: 540 Bytes
Versions: 1
Compression:
Stored size: 540 Bytes
Contents
module Zadt class Edge # Made up of a attr_reader :connection # Contains attr_accessor :value def initialize(v1, v2, value = Hash.new) @connection = [v1, v2] @value = value end def self.methods self.help end def inspect @connection.to_s end def help self.help end def methods help end def self.help puts "Edge has one method:" puts "#connection, which returns the vertices the edge connects" end private end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zadt-0.1.7 | lib/zadt/AbstractDataTypes/Graph/edge.rb |