Class: DictionaryParser
- Inherits:
-
Object
- Object
- DictionaryParser
- Defined in:
- lib/snarkify/dictionary_parser.rb
Class Method Summary collapse
Class Method Details
.parse_dictionary(dictionary) ⇒ Object
2 3 4 5 6 |
# File 'lib/snarkify/dictionary_parser.rb', line 2 def self.parse_dictionary(dictionary) dictionary.map do |entry| WordSubstitution.new(entry) end end |