Sha256: d5af8cf30e70f809b20e47175e653febeca433adab6258db891a74f42b9b230d

Contents?: true

Size: 276 Bytes

Versions: 1

Compression:

Stored size: 276 Bytes

Contents

require 'rubygems'
require 'bundler'

Bundler.require

Dir.glob(File.join(File.dirname(__FILE__), 'lederhosen', '*.rb')).each { |f| require f }

class String
  def to_kmers(k)
    return [] if k == 0
    k -= 1
    (0..(self.length-k-1)).collect { |i| self[i..i+k] }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lederhosen-0.0.11 lib/lederhosen.rb