Method: Mongo::Cursor#inspect

Defined in:
lib/mongo/cursor.rb

#inspectString

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.

Get a human-readable string representation of Cursor.

Examples:

Inspect the cursor.

cursor.inspect

Returns:

  • (String)

    A string representation of a Cursor instance.

Since:

  • 2.0.0



145
146
147
# File 'lib/mongo/cursor.rb', line 145

def inspect
  "#<Mongo::Cursor:0x#{object_id} @view=#{@view.inspect}>"
end