Method: BSON::ObjectId#inspect

Defined in:
lib/bson/object_id.rb

#inspectString

Get a nice string for use with object inspection.

Examples:

Inspect the object id.

object_id.inspect

Since:

  • 2.0.0



134
135
136
# File 'lib/bson/object_id.rb', line 134

def inspect
  "BSON::ObjectId('#{self}')"
end