Exception: I18n::MissingInterpolationArgument
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- ArgumentError
- I18n::MissingInterpolationArgument
- Defined in:
- lib/i18n/exceptions.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#string ⇒ Object
readonly
Returns the value of attribute string.
-
#values ⇒ Object
readonly
Returns the value of attribute values.
Instance Method Summary collapse
-
#initialize(key, values, string) ⇒ MissingInterpolationArgument
constructor
A new instance of MissingInterpolationArgument.
Constructor Details
#initialize(key, values, string) ⇒ MissingInterpolationArgument
Returns a new instance of MissingInterpolationArgument.
76 77 78 79 |
# File 'lib/i18n/exceptions.rb', line 76 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
#key ⇒ Object (readonly)
Returns the value of attribute key.
75 76 77 |
# File 'lib/i18n/exceptions.rb', line 75 def key @key end |
#string ⇒ Object (readonly)
Returns the value of attribute string.
75 76 77 |
# File 'lib/i18n/exceptions.rb', line 75 def string @string end |
#values ⇒ Object (readonly)
Returns the value of attribute values.
75 76 77 |
# File 'lib/i18n/exceptions.rb', line 75 def values @values end |