Method: Bio::Nexus::NexusMatrix#to_s
- Defined in:
- lib/bio/db/nexus.rb
#to_s ⇒ Object Also known as: to_str
Returns matrix as String, returns “empty” if empty.
- Returns
-
String
1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 |
# File 'lib/bio/db/nexus.rb', line 1714 def to_s if is_empty? return "empty" end str = String.new row_array = to_nexus_row_array( spacer = " ", false ) row_array.each do | row | str << row << END_OF_LINE end str end |