Class: TypoGen::SkipLetter
- Inherits:
-
Object
- Object
- TypoGen::SkipLetter
- 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 |