Exception: I18n::MissingInterpolationArgument

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, string) ⇒ MissingInterpolationArgument

Returns a new instance of MissingInterpolationArgument.



32
33
34
35
# File 'lib/vendor/i18n/lib/i18n/exceptions.rb', line 32

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

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



31
32
33
# File 'lib/vendor/i18n/lib/i18n/exceptions.rb', line 31

def key
  @key
end

#stringObject (readonly)

Returns the value of attribute string.



31
32
33
# File 'lib/vendor/i18n/lib/i18n/exceptions.rb', line 31

def string
  @string
end