123456789_123456789_123456789_123456789_123456789_

Class: Mongoid::Changeable::Anything Private

Do not use. This class is for internal use only.
Relationships & Source Files
Inherits: Object
Defined in: lib/mongoid/changeable.rb

Overview

A class for representing the default value that an attribute was changed from or to.

Instance Method Summary

Instance Method Details

#==(_other) ⇒ true

‘Anything` objects are always equal to everything. This simplifies the logic for asking whether an attribute has changed or not. If the from or to value is a Anything (because it was not explicitly given), any comparison with it will suggest the value has not changed.

Parameters:

  • _other (Object)

    The object being compared with this object.

Returns:

  • (true)

    Always returns true.

[ GitHub ]

  
# File 'lib/mongoid/changeable.rb', line 238

def ==(_other)
  true
end