Module: I18n::Alchemy::ClassMethods

Defined in:
lib/i18n_alchemy.rb

Instance Method Summary collapse

Instance Method Details

#localize(*methods, options) ⇒ Object



28
29
30
31
32
33
34
# File 'lib/i18n_alchemy.rb', line 28

def localize(*methods, options)
  parser  = options[:using]
  methods = methods.each_with_object({}) do |method_name, hash|
    hash[method_name] = parser
  end
  self.localized_methods = self.localized_methods.merge(methods)
end