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)

Returns a new instance of ReservedInterpolationKey



115
116
117
118
# File 'lib/i18n/exceptions.rb', line 115

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



114
115
116
# File 'lib/i18n/exceptions.rb', line 114

def key
  @key
end

- (Object) string (readonly)

Returns the value of attribute string



114
115
116
# File 'lib/i18n/exceptions.rb', line 114

def string
  @string
end