class SimpleBioC::Relation

Attributes

nodes[RW]

Public Class Methods

new(parent) click to toggle source
Calls superclass method SimpleBioC::NodeBase.new
# File lib/simple_bioc/relation.rb, line 6
def initialize(parent)
  super(parent)
  @nodes = []
end

Public Instance Methods

adjust_ref() click to toggle source
# File lib/simple_bioc/relation.rb, line 11
def adjust_ref
  nodes.each{|n| n.adjust_ref}
end
to_c() click to toggle source
# File lib/simple_bioc/relation.rb, line 15
def to_c
  "Relation:#{id}"
end