Class Mongoid::Persistence::Atomic::Bit
In: lib/mongoid/persistence/atomic/bit.rb
Parent: Object

This operation is for performing $bit atomic operations against the database.

Methods

persist  

Included Modules

Operation

Public Instance methods

Execute the bitwise operation. This correlates to a $bit in MongoDB.

@example Execute the op.

  bit.persist

@return [ Integer ] The new value.

@since 2.1.0

[Validate]