Module: I18n::Alchemy::ClassMethods

Defined in:
lib/i18n_alchemy.rb

Instance Method Summary collapse

Instance Method Details

#localize(*methods) ⇒ Object



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

def localize(*methods)
  options = methods.extract_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