Exception: I18n::MissingInterpolationArgument
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- ArgumentError
- I18n::MissingInterpolationArgument
- Defined in:
- lib/i18n/exceptions.rb
Instance Attribute Summary (collapse)
-
- (Object) key
readonly
Returns the value of attribute key.
-
- (Object) string
readonly
Returns the value of attribute string.
-
- (Object) values
readonly
Returns the value of attribute values.
Instance Method Summary (collapse)
- - (Object) html_message
-
- (MissingInterpolationArgument) initialize(key, values, string)
constructor
A new instance of MissingInterpolationArgument.
Constructor Details
- (MissingInterpolationArgument) initialize(key, values, string)
A new instance of MissingInterpolationArgument
85 86 87 88 |
# File 'lib/i18n/exceptions.rb', line 85 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
84 85 86 |
# File 'lib/i18n/exceptions.rb', line 84 def key @key end |
- (Object) string (readonly)
Returns the value of attribute string
84 85 86 |
# File 'lib/i18n/exceptions.rb', line 84 def string @string end |
- (Object) values (readonly)
Returns the value of attribute values
84 85 86 |
# File 'lib/i18n/exceptions.rb', line 84 def values @values end |
Instance Method Details
- (Object) html_message
90 91 92 |
# File 'lib/i18n/exceptions.rb', line 90 def %(<span class='interpolation_missing' title='#{}'>%{#{key}}</span>) end |