Exception: I18n::InvalidPluralizationData

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entry, count, key) ⇒ InvalidPluralizationData

Returns a new instance of InvalidPluralizationData.



92
93
94
95
# File 'lib/i18n/exceptions.rb', line 92

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

Instance Attribute Details

#countObject (readonly)

Returns the value of attribute count.



91
92
93
# File 'lib/i18n/exceptions.rb', line 91

def count
  @count
end

#entryObject (readonly)

Returns the value of attribute entry.



91
92
93
# File 'lib/i18n/exceptions.rb', line 91

def entry
  @entry
end

#keyObject (readonly)

Returns the value of attribute key.



91
92
93
# File 'lib/i18n/exceptions.rb', line 91

def key
  @key
end