Exception: I18n::ReservedInterpolationKey

Inherits:
ArgumentError show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/i18n-1.12.0/lib/i18n/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, string) ⇒ ReservedInterpolationKey

Returns a new instance of ReservedInterpolationKey.



100
101
102
103
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/i18n-1.12.0/lib/i18n/exceptions.rb', line 100

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.



99
100
101
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/i18n-1.12.0/lib/i18n/exceptions.rb', line 99

def key
  @key
end

#stringObject (readonly)

Returns the value of attribute string.



99
100
101
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/i18n-1.12.0/lib/i18n/exceptions.rb', line 99

def string
  @string
end