Sha256: d7e4fb9412021c5ce1538e9b2a16646f0794c0b1a93ebee8ab128f6c11a6d897

Contents?: true

Size: 184 Bytes

Versions: 5

Compression:

Stored size: 184 Bytes

Contents

module TypoGen
  class SkipLetter
    def self.create(word)
      word.size.times.map do |i|
        temp = word.dup
        temp[i] = ''
        temp
      end.uniq
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
typogen-0.2.2 lib/typogen/skip_letter.rb
typogen-0.2.1 lib/typogen/skip_letter.rb
typogen-0.2.0 lib/typogen/skip_letter.rb
typogen-0.1.1 lib/typogen/skip_letter.rb
typogen-0.1.0 lib/typogen/skip_letter.rb