Class: Bio::NeXML::IntRootEdge

Inherits:
RootEdge show all
Defined in:
lib/bio/db/nexml/trees.rb

Instance Attribute Summary

Attributes inherited from Edge

#id, #label, #source, #target

Instance Method Summary collapse

Methods inherited from RootEdge

#to_xml

Methods inherited from Edge

#length=, #to_xml

Methods included from Mapper

#properties

Constructor Details

#initialize(id, options = {}) ⇒ IntRootEdge

Returns a new instance of IntRootEdge.



127
128
129
# File 'lib/bio/db/nexml/trees.rb', line 127

def initialize( id, options = {} )
  super
end

Instance Method Details

#lengthObject



130
131
132
# File 'lib/bio/db/nexml/trees.rb', line 130

def length
  distance.to_i
end