Exception: I18n::InvalidPluralizationData
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- ArgumentError
- I18n::InvalidPluralizationData
- Defined in:
- lib/i18n/exceptions.rb
Instance Attribute Summary (collapse)
-
- (Object) count
readonly
Returns the value of attribute count.
-
- (Object) entry
readonly
Returns the value of attribute entry.
Instance Method Summary (collapse)
-
- (InvalidPluralizationData) initialize(entry, count)
constructor
A new instance of InvalidPluralizationData.
Constructor Details
- (InvalidPluralizationData) initialize(entry, count)
A new instance of InvalidPluralizationData
77 78 79 80 |
# File 'lib/i18n/exceptions.rb', line 77 def initialize(entry, count) @entry, @count = entry, count super "translation data #{entry.inspect} can not be used with :count => #{count}" end |
Instance Attribute Details
- (Object) count (readonly)
Returns the value of attribute count
76 77 78 |
# File 'lib/i18n/exceptions.rb', line 76 def count @count end |
- (Object) entry (readonly)
Returns the value of attribute entry
76 77 78 |
# File 'lib/i18n/exceptions.rb', line 76 def entry @entry end |