Class: Bio::NeXML::SeqRow

Inherits:
Row
  • Object
show all
Defined in:
lib/bio/db/nexml/matrix.rb

Overview

end of row class

Constant Summary collapse

@@writer =
Bio::NeXML::Writer.new

Instance Attribute Summary

Attributes inherited from Row

#id, #label

Instance Method Summary collapse

Methods inherited from Row

#initialize

Methods included from Mapper

#properties

Constructor Details

This class inherits a constructor from Bio::NeXML::Row

Instance Method Details

#to_xmlObject



724
725
726
727
728
# File 'lib/bio/db/nexml/matrix.rb', line 724

def to_xml
  node = @@writer.create_node( "row", @@writer.attributes( self, :id, :otu, :label ) )
  node << self.sequences.first.to_xml
  node
end