Exception: I18n::MissingInterpolationArgument

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, values, string) ⇒ MissingInterpolationArgument

Returns a new instance of MissingInterpolationArgument.



102
103
104
105
# File 'lib/i18n/exceptions.rb', line 102

def initialize(key, values, string)
  @key, @values, @string = key, values, string
  super "missing interpolation argument #{key.inspect} in #{string.inspect} (#{values.inspect} given)"
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



101
102
103
# File 'lib/i18n/exceptions.rb', line 101

def key
  @key
end

#stringObject (readonly)

Returns the value of attribute string.



101
102
103
# File 'lib/i18n/exceptions.rb', line 101

def string
  @string
end

#valuesObject (readonly)

Returns the value of attribute values.



101
102
103
# File 'lib/i18n/exceptions.rb', line 101

def values
  @values
end