Class: Bio::NeXML::FloatEdge
- Defined in:
- lib/bio/db/nexml/trees.rb
Overview
A float edge is an edge whose length is defined using a floating point number.
Instance Attribute Summary
Attributes inherited from Edge
Instance Method Summary collapse
-
#initialize(id, options = {}) ⇒ FloatEdge
constructor
A new instance of FloatEdge.
- #length ⇒ Object
Methods inherited from Edge
Methods included from Mapper
Constructor Details
#initialize(id, options = {}) ⇒ FloatEdge
Returns a new instance of FloatEdge.
138 139 140 |
# File 'lib/bio/db/nexml/trees.rb', line 138 def initialize( id, = {} ) super end |
Instance Method Details
#length ⇒ Object
141 142 143 |
# File 'lib/bio/db/nexml/trees.rb', line 141 def length distance.to_f end |