Exception: I18n::InvalidPluralizationData
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- ArgumentError
- I18n::InvalidPluralizationData
- Defined in:
- lib/i18n/exceptions.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
readonly
Returns the value of attribute count.
-
#entry ⇒ Object
readonly
Returns the value of attribute entry.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(entry, count, key) ⇒ InvalidPluralizationData
constructor
A new instance of InvalidPluralizationData.
Constructor Details
#initialize(entry, count, key) ⇒ InvalidPluralizationData
Returns a new instance of InvalidPluralizationData.
94 95 96 97 |
# File 'lib/i18n/exceptions.rb', line 94 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
#count ⇒ Object (readonly)
Returns the value of attribute count.
93 94 95 |
# File 'lib/i18n/exceptions.rb', line 93 def count @count end |
#entry ⇒ Object (readonly)
Returns the value of attribute entry.
93 94 95 |
# File 'lib/i18n/exceptions.rb', line 93 def entry @entry end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
93 94 95 |
# File 'lib/i18n/exceptions.rb', line 93 def key @key end |