| File | Date | Author | Commit |
|---|---|---|---|
| lib | 2014-05-03 |
|
[0124e0] first release |
| pkg | 2014-05-03 |
|
[0124e0] first release |
| spec | 2014-05-03 |
|
[0124e0] first release |
| .gitignore | 2014-05-03 |
|
[f9e1c8] added gitignore |
| Gemfile | 2014-05-03 |
|
[0124e0] first release |
| Gemfile.lock | 2014-05-03 |
|
[f9e1c8] added gitignore |
| LICENSE.txt | 2014-05-03 |
|
[0124e0] first release |
| README.md | 2014-05-03 |
|
[f176d4] fixed another formatting error |
| Rakefile | 2014-05-03 |
|
[0124e0] first release |
| anagram_solver.gemspec | 2014-05-03 |
|
[18cfcf] changed the name of the gem |
It's a simple ruby gem for solving anagram puzzles.
It will return all the possible anagrams (valid words) for the given word.
An empty array will be returned if no valid anagrams are available for a word.
Add this line to your application's Gemfile:
gem 'the_anagram_solver'
And then execute:
$ bundle
Or install it yourself as:
$ gem install the_anagram_solver
as = AnagramSolver::Anagram.new
as.solve("rat")
=> ["art", "rat", "tar"]
as.solve("ouhioyuyyy")
=> []