Sha256: 15ac36eb752c7f9459f39483d7815ec8359d4b7f20018023cfbd34095793c1ab

Contents?: true

Size: 279 Bytes

Versions: 1

Compression:

Stored size: 279 Bytes

Contents

#!/usr/bin/env ruby
require 'word_scramble'

if ARGV.empty?
  puts "Usage: ./descramble <word>"
  exit
end

descrambler = WordScramble::Descrambler.new(ARGV.first)

puts "no matches" if descrambler.matching_words.empty?

descrambler.matching_words.each do |word|
  puts word
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
word_scramble-0.1.0 bin/descramble