Exception: I18n::InvalidPluralizationData

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/vendor/i18n/lib/i18n/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entry, count) ⇒ InvalidPluralizationData

Returns a new instance of InvalidPluralizationData.



24
25
26
27
# File 'lib/vendor/i18n/lib/i18n/exceptions.rb', line 24

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.



23
24
25
# File 'lib/vendor/i18n/lib/i18n/exceptions.rb', line 23

def count
  @count
end

#entryObject (readonly)

Returns the value of attribute entry.



23
24
25
# File 'lib/vendor/i18n/lib/i18n/exceptions.rb', line 23

def entry
  @entry
end