Class: PactBroker::DateHelper::Locale

Inherits:
Object
  • Object
show all
Defined in:
lib/pact_broker/date_helper.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Locale

Returns a new instance of Locale.



13
14
15
# File 'lib/pact_broker/date_helper.rb', line 13

def initialize options
  @options = options
end

Instance Method Details

#t(path, options) ⇒ Object



17
18
19
# File 'lib/pact_broker/date_helper.rb', line 17

def t path, options
  I18n.t path, @options.merge(options)
end