Parent

Methods

KeyError

KeyError is raised by String#% when the string contains a named placeholder that is not contained in the given arguments hash. Ruby 1.9 includes and raises this exception natively. We define it to mimic Ruby 1.9’s behaviour in Ruby 1.8.x


encoding: utf-8

Public Class Methods

new(message = nil) click to toggle source
    # File lib/i18n/core_ext/string/interpolate.rb, line 18
18:     def initialize(message = nil)
19:       super(message || "key not found")
20:     end
new(message = nil) click to toggle source
   # File lib/i18n/exceptions.rb, line 4
4:   def initialize(message = nil)
5:     super(message || "key not found")
6:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.