Class: Bio::NeXML::FloatRootEdge

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 = {}) ⇒ FloatRootEdge

Returns a new instance of FloatRootEdge.



118
119
120
# File 'lib/bio/db/nexml/trees.rb', line 118

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

Instance Method Details

#lengthObject



121
122
123
# File 'lib/bio/db/nexml/trees.rb', line 121

def length
  distance.to_f
end