Exception: I18n::MissingInterpolationArgument

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (MissingInterpolationArgument) initialize(key, values, string)



83
84
85
86
# File 'lib/i18n/exceptions.rb', line 83

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

- (Object) key (readonly)

Returns the value of attribute key



82
83
84
# File 'lib/i18n/exceptions.rb', line 82

def key
  @key
end

- (Object) string (readonly)

Returns the value of attribute string



82
83
84
# File 'lib/i18n/exceptions.rb', line 82

def string
  @string
end

- (Object) values (readonly)

Returns the value of attribute values



82
83
84
# File 'lib/i18n/exceptions.rb', line 82

def values
  @values
end