Exception: I18n::InvalidPluralizationData

Inherits:
ArgumentError show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/i18n-1.12.0/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.



84
85
86
87
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/i18n-1.12.0/lib/i18n/exceptions.rb', line 84

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.



83
84
85
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/i18n-1.12.0/lib/i18n/exceptions.rb', line 83

def count
  @count
end

#entryObject (readonly)

Returns the value of attribute entry.



83
84
85
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/i18n-1.12.0/lib/i18n/exceptions.rb', line 83

def entry
  @entry
end

#keyObject (readonly)

Returns the value of attribute key.



83
84
85
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/i18n-1.12.0/lib/i18n/exceptions.rb', line 83

def key
  @key
end