Method: Bio::Nexus::Util.to_nexus_helper
- Defined in:
- lib/bio/db/nexus.rb
.to_nexus_helper(block, lines) ⇒ Object
Helper method to produce nexus formatted data.
Arguments:
-
(required) block: Nexus:GenericBlock or its subclasses
-
(required) block: Array
- Returns
-
String
1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 |
# File 'lib/bio/db/nexus.rb', line 1804 def Util::to_nexus_helper( block, lines ) str = String.new str << BEGIN_BLOCK << " " << block << END_OF_LINE lines.each do | line | if ( line != nil ) str << INDENTENTION << line << END_OF_LINE end end # do str << END_BLOCK << END_OF_LINE str end |