Class: Merb::Global::MessageProviders::Mock

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/merb_global/message_providers/mock.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods included from Base

transfer

Instance Method Details

#create!Object



11
12
13
# File 'lib/merb_global/message_providers/mock.rb', line 11

def create!
  nil # It's mock after all ;)
end

#localize(singular, plural, n, locale) ⇒ Object



7
8
9
# File 'lib/merb_global/message_providers/mock.rb', line 7

def localize(singular, plural, n, locale)
  n > 1 ? plural : singular
end