Exception: I18n::InvalidPluralizationData
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- ArgumentError
- I18n::InvalidPluralizationData
- Defined in:
- lib/gems/activesupport-2.2.2/lib/active_support/vendor/i18n-0.0.1/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.
Instance Method Summary collapse
-
#initialize(entry, count) ⇒ InvalidPluralizationData
constructor
A new instance of InvalidPluralizationData.
Constructor Details
#initialize(entry, count) ⇒ InvalidPluralizationData
Returns a new instance of InvalidPluralizationData.
24 25 26 27 |
# File 'lib/gems/activesupport-2.2.2/lib/active_support/vendor/i18n-0.0.1/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
#count ⇒ Object (readonly)
Returns the value of attribute count.
23 24 25 |
# File 'lib/gems/activesupport-2.2.2/lib/active_support/vendor/i18n-0.0.1/i18n/exceptions.rb', line 23 def count @count end |
#entry ⇒ Object (readonly)
Returns the value of attribute entry.
23 24 25 |
# File 'lib/gems/activesupport-2.2.2/lib/active_support/vendor/i18n-0.0.1/i18n/exceptions.rb', line 23 def entry @entry end |