Module: I18n::Tests::Procs

Defined in:
lib/i18n/tests/procs.rb

Class Method Summary collapse

Class Method Details

.filter_args(*args) ⇒ Object



55
56
57
58
59
60
61
62
63
64
# File 'lib/i18n/tests/procs.rb', line 55

def self.filter_args(*args)
  args.map do |arg|
    if arg.is_a?(Hash)
      arg.delete(:fallback_in_progress)
      arg.delete(:fallback_original_locale)
      arg.delete(:skip_interpolation)
    end
    arg
  end.inspect
end