lib/translate_self/translation.rb in translate_self-1.0.0 vs lib/translate_self/translation.rb in translate_self-1.0.1

- old
+ new

@@ -39,13 +39,13 @@ # # Hei # # @param [String] the language to translate to, e.g. "fi" # @return [String] the contents translated to another language @@languages.each do |lan| - define_method("translate_to_#{lan}") do |language = lan| + define_method("translate_to_#{lan}".to_sym) do |language = lan| call_deepl(self.language, language) end - alias_method "to_#{lan}", "translate_to_#{lan}" + alias_method "to_#{lan}".to_sym, "translate_to_#{lan}".to_sym end private def break_up(to_lan)