Exception: I18n::MissingInterpolationArgument

Inherits:
ArgumentError show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/i18n-1.12.0/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.



92
93
94
95
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/i18n-1.12.0/lib/i18n/exceptions.rb', line 92

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.



91
92
93
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/i18n-1.12.0/lib/i18n/exceptions.rb', line 91

def key
  @key
end

#stringObject (readonly)

Returns the value of attribute string.



91
92
93
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/i18n-1.12.0/lib/i18n/exceptions.rb', line 91

def string
  @string
end

#valuesObject (readonly)

Returns the value of attribute values.



91
92
93
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/i18n-1.12.0/lib/i18n/exceptions.rb', line 91

def values
  @values
end