Method: I18n::Inflector::InflectionOptions#clean_for_translate!

Defined in:
lib/i18n-inflector/options.rb

#clean_for_translate!(options) ⇒ Hash

Note:

It modifies the given object.

This method prepares options for translate method. That means removal of all kind-related options and all options that are flags.

Parameters:

  • options (Hash)

    the given options

Returns:

  • (Hash)

    the given options

[View source]

319
320
321
322
# File 'lib/i18n-inflector/options.rb', line 319

def clean_for_translate!(options)
  self.class.known.each { |name,long| options.delete long }
  options
end