Class: Bio::NeXML::RootEdge
- Defined in:
- lib/bio/db/nexml/trees.rb
Overview
A rootedge is an edge without a source. It is used in context of coalescent trees. RootEdge inherits from Edge so the same functionality is available in rootedge too.
Direct Known Subclasses
Constant Summary collapse
Instance Attribute Summary
Attributes inherited from Edge
Instance Method Summary collapse
-
#initialize(id, options = {}) ⇒ RootEdge
constructor
A new instance of RootEdge.
- #to_xml ⇒ Object
Methods inherited from Edge
Methods included from Mapper
Constructor Details
#initialize(id, options = {}) ⇒ RootEdge
Returns a new instance of RootEdge.
112 113 114 |
# File 'lib/bio/db/nexml/trees.rb', line 112 def initialize( id, = {} ) super end |
Instance Method Details
#to_xml ⇒ Object
106 107 108 |
# File 'lib/bio/db/nexml/trees.rb', line 106 def to_xml @@writer.create_node( "rootedge", @@writer.attributes( self, :id, :target, :length, :label ) ) end |