Class: Bio::NeXML::RootEdge
- Inherits:
-
Edge
- Object
- Tree::Edge
- Edge
- 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
- @@writer =
Bio::NeXML::Writer.new
Instance Attribute Summary
Attributes inherited from Edge
Instance Method Summary (collapse)
-
- (RootEdge) initialize(id, options = {})
constructor
A new instance of RootEdge.
- - (Object) to_xml
Methods inherited from Edge
Methods included from Mapper
Constructor Details
- (RootEdge) initialize(id, options = {})
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
- (Object) to_xml
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 |