Class: TypoGen::SkipLetter

Inherits:
Object
  • Object
show all
Defined in:
lib/typogen/skip_letter.rb

Class Method Summary collapse

Class Method Details

.create(word) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/typogen/skip_letter.rb', line 3

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