Class: Manywords::Walker
- Inherits:
-
Object
- Object
- Manywords::Walker
- Defined in:
- lib/manywords/walker.rb
Instance Method Summary collapse
Instance Method Details
#walk(letters, &block) ⇒ Object
5 6 7 8 9 |
# File 'lib/manywords/walker.rb', line 5 def walk(letters, &block) list = letters.split '' list.sort! permutations [], list, &block end |