This is used describe the domain architecture of a protein. Attribute 'length' is the total length of the protein
# File lib/bio/db/phyloxml/phyloxml_elements.rb, line 847 def length=(str) @length = str.to_i end
Converts elements to xml representation. Called by PhyloXML::Writer class.
# File lib/bio/db/phyloxml/phyloxml_elements.rb, line 856 def to_xml xml_node = LibXML::XML::Node.new('domain_architecture') PhyloXML::Writer.generate_xml(xml_node, self,[ [:attr, 'length'], [:objarr, 'domain', 'domains']]) return xml_node end
Generated with the Darkfish Rdoc Generator 2.