Class: Object

Inherits:
BasicObject
Defined in:
lib/vendor/i18n/test/with_options.rb,
lib/vendor/i18n/test/test_helper.rb

Overview

this is only here so we can test I18n works nicely with ActiveSupports with_options. Maybe we can just remove it?

Instance Method Summary collapse

Instance Method Details

#meta_classObject



66
67
68
# File 'lib/vendor/i18n/test/test_helper.rb', line 66

def meta_class
  class << self; self; end
end

#with_options(options) {|ActiveSupport::OptionMerger.new(self, options)| ... } ⇒ Object

Yields:



7
8
9
# File 'lib/vendor/i18n/test/with_options.rb', line 7

def with_options(options)
  yield ActiveSupport::OptionMerger.new(self, options)
end