Exception: I18n::InvalidPluralizationData

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (InvalidPluralizationData) initialize(entry, count)

Returns a new instance of InvalidPluralizationData



75
76
77
78
# File 'lib/i18n/exceptions.rb', line 75

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



74
75
76
# File 'lib/i18n/exceptions.rb', line 74

def count
  @count
end

- (Object) entry (readonly)

Returns the value of attribute entry



74
75
76
# File 'lib/i18n/exceptions.rb', line 74

def entry
  @entry
end