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(values, string) ⇒ MissingInterpolationArgument

Returns a new instance of MissingInterpolationArgument.



67
68
69
70
# File 'lib/i18n/exceptions.rb', line 67

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

Instance Attribute Details

#stringObject (readonly)

Returns the value of attribute string.



66
67
68
# File 'lib/i18n/exceptions.rb', line 66

def string
  @string
end

#valuesObject (readonly)

Returns the value of attribute values.



66
67
68
# File 'lib/i18n/exceptions.rb', line 66

def values
  @values
end