Class: Bio::NeXML::IntEdge
- Defined in:
- lib/bio/db/nexml/trees.rb
Overview
An int edge is an edge whose length is defined using an integer
Instance Attribute Summary
Attributes inherited from Edge
Instance Method Summary collapse
-
#initialize(id, options = {}) ⇒ IntEdge
constructor
A new instance of IntEdge.
- #length ⇒ Object
Methods inherited from Edge
Methods included from Mapper
Constructor Details
#initialize(id, options = {}) ⇒ IntEdge
Returns a new instance of IntEdge.
148 149 150 |
# File 'lib/bio/db/nexml/trees.rb', line 148 def initialize( id, = {} ) super end |
Instance Method Details
#length ⇒ Object
151 152 153 |
# File 'lib/bio/db/nexml/trees.rb', line 151 def length distance.to_i end |