Exception: I18n::ReservedInterpolationKey

Inherits:
ArgumentError show all
Defined in:
lib/active_support/vendor/i18n-0.0.1/i18n/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, string) ⇒ ReservedInterpolationKey

Returns a new instance of ReservedInterpolationKey.



40
41
42
43
# File 'lib/active_support/vendor/i18n-0.0.1/i18n/exceptions.rb', line 40

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.



39
40
41
# File 'lib/active_support/vendor/i18n-0.0.1/i18n/exceptions.rb', line 39

def key
  @key
end

#stringObject (readonly)

Returns the value of attribute string.



39
40
41
# File 'lib/active_support/vendor/i18n-0.0.1/i18n/exceptions.rb', line 39

def string
  @string
end