Exception: I18n::ReservedInterpolationKey

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, string) ⇒ ReservedInterpolationKey

Returns a new instance of ReservedInterpolationKey.


98
99
100
101
# File 'lib/i18n/exceptions.rb', line 98

def initialize(key, string)
  @key, @string = key, string
  super "reserved key #{key.inspect} used in #{string.inspect}"
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key


97
98
99
# File 'lib/i18n/exceptions.rb', line 97

def key
  @key
end

#stringObject (readonly)

Returns the value of attribute string


97
98
99
# File 'lib/i18n/exceptions.rb', line 97

def string
  @string
end