Method: BSON::Error::InvalidKey#initialize
- Defined in:
- lib/bson/error/invalid_key.rb
#initialize(object) ⇒ InvalidKey
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Instantiate the exception.
18 19 20 |
# File 'lib/bson/error/invalid_key.rb', line 18 def initialize(object) super("#{object.class} instances are not allowed as keys in a BSON document.") end |