| Class Anagram |
|
|
This class holds the letters in the original word or phrase. The is_anagram? method allows us to test if subsequent words or phrases are anagrams of the original.
| Methods |
| Public Class methods |
| new(text) |
Remember the letters in the initial word
| Public Instance methods |
| is_anagram?(text) |
Test to see if a new word contains the same letters as the original
| letters_of(text) |
Determine the letters in a word or phrase