Module: I18n::Tests::Localization::Procs
- Defined in:
- lib/i18n/tests/localization/procs.rb
Class Method Summary collapse
Class Method Details
.inspect_args(args, kwargs) ⇒ Object
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/i18n/tests/localization/procs.rb', line 67 def self.inspect_args(args, kwargs) args << kwargs args = args.map do |arg| case arg when ::Time, ::DateTime arg.strftime('%a, %d %b %Y %H:%M:%S %Z').sub('+0000', '+00:00') when ::Date arg.strftime('%a, %d %b %Y') when Hash arg.delete(:fallback_in_progress) arg.delete(:fallback_original_locale) arg.inspect else arg.inspect end end "[#{args.join(', ')}]" end |