Exception: I18n::ReservedInterpolationKey
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- ArgumentError
- I18n::ReservedInterpolationKey
- 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.
Instance Method Summary collapse
-
#initialize(key, string) ⇒ ReservedInterpolationKey
constructor
A new instance of ReservedInterpolationKey.
Constructor Details
#initialize(key, string) ⇒ ReservedInterpolationKey
Returns a new instance of ReservedInterpolationKey.
110 111 112 113 |
# File 'lib/i18n/exceptions.rb', line 110 def initialize(key, string) @key, @string = key, string super "reserved key #{key.inspect} used in #{string.inspect}" end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
109 110 111 |
# File 'lib/i18n/exceptions.rb', line 109 def key @key end |
#string ⇒ Object (readonly)
Returns the value of attribute string.
109 110 111 |
# File 'lib/i18n/exceptions.rb', line 109 def string @string end |