Exception: I18n::ReservedInterpolationKey

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (ReservedInterpolationKey) initialize(key, string)



91
92
93
94
# File 'lib/i18n/exceptions.rb', line 91

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

Instance Attribute Details

- (Object) key (readonly)

Returns the value of attribute key



90
91
92
# File 'lib/i18n/exceptions.rb', line 90

def key
  @key
end

- (Object) string (readonly)

Returns the value of attribute string



90
91
92
# File 'lib/i18n/exceptions.rb', line 90

def string
  @string
end