Method: LOLspeak::Tranzlator.from_file

Defined in:
lib/lolspeak.rb

.from_file(file) ⇒ Object

Creates a Tranzlator using a dictionary from a YAML file

:call-seq:

Tranzlator.from_file(file)        -> Tranzlator


33
34
35
36
# File 'lib/lolspeak.rb', line 33

def from_file(file)
  dictionary = YAML::load_file(file)
  return Tranzlator.new(dictionary)
end