Method: LOLspeak::Tranzlator#initialize
- Defined in:
- lib/lolspeak.rb
#initialize(dictionary) ⇒ Tranzlator
Creates a Tranzlator from the given dictionary
:call-seq:
initialize(dictionary) -> Tranzlator
44 45 46 47 48 49 50 |
# File 'lib/lolspeak.rb', line 44 def initialize(dictionary) @dictionary = dictionary @traced_words = {} @try_heuristics = false @translated_heuristics = {} @heuristics_exclude = Set.new end |