Module: ParseFasta::CoreExt::String
- Defined in:
- lib/parse_fasta/core_ext/string.rb
Instance Method Summary collapse
-
#remove_gaps(gap_char = "-") ⇒ String
Removes all gap chars from the string.
Instance Method Details
#remove_gaps(gap_char = "-") ⇒ String
Removes all gap chars from the string.
23 24 25 |
# File 'lib/parse_fasta/core_ext/string.rb', line 23 def remove_gaps gap_char="-" self.tr gap_char, "" end |