lib/genomer-plugin-summary/gaps.rb in genomer-plugin-summary-0.0.1 vs lib/genomer-plugin-summary/gaps.rb in genomer-plugin-summary-0.0.2
- old
+ new
@@ -37,10 +37,10 @@
table.align_column 1, :right
table.align_column 2, :right
table.align_column 3, :right
table.align_column 4, :center
- table
+ table.to_s
end
def gap_locations(seq)
seq.upcase.enum_for(:scan, /(N+)/).map do
(Regexp.last_match.begin(0)+1)..(Regexp.last_match.end(0))