Exception: I18n::InvalidPluralizationData

Inherits:
ArgumentError show all
Defined in:
lib/active_support/vendor/i18n-0.4.1/i18n/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entry, count) ⇒ InvalidPluralizationData

Returns a new instance of InvalidPluralizationData.



32
33
34
35
# File 'lib/active_support/vendor/i18n-0.4.1/i18n/exceptions.rb', line 32

def initialize(entry, count)
  @entry, @count = entry, count
  super "translation data #{entry.inspect} can not be used with :count => #{count}"
end

Instance Attribute Details

#countObject (readonly)

Returns the value of attribute count.



31
32
33
# File 'lib/active_support/vendor/i18n-0.4.1/i18n/exceptions.rb', line 31

def count
  @count
end

#entryObject (readonly)

Returns the value of attribute entry.



31
32
33
# File 'lib/active_support/vendor/i18n-0.4.1/i18n/exceptions.rb', line 31

def entry
  @entry
end