Module: Mongoid::Criteria::Queryable::Extensions::NilClass

Defined in:
build/mongoid-master/lib/mongoid/criteria/queryable/extensions/nil_class.rb

Overview

This module contains additional nil behavior.

Instance Method Summary collapse

Instance Method Details

#__add__(object) ⇒ Object

Add this object to nil.

Examples:

Add the object to a nil value.

nil.__add__([ 1, 2, 3 ])

Parameters:

  • object (Object)

    The object to add.

Returns:

  • (Object)

    The provided object.

Since:

  • 1.0.0



22
# File 'build/mongoid-master/lib/mongoid/criteria/queryable/extensions/nil_class.rb', line 22

def __add__(object); object; end

#__evolve_time__nil Also known as: __evolve_date__

Evolve the nil into a date or time.

Examples:

Evolve the nil.

nil.__evolve_time__

Returns:

  • (nil)

    nil.

Since:

  • 1.0.0



44
# File 'build/mongoid-master/lib/mongoid/criteria/queryable/extensions/nil_class.rb', line 44

def __evolve_time__; self; end

#__expanded__(object) ⇒ Object

Add this object to nil.

Examples:

Add the object to a nil value.

nil.__expanded__([ 1, 2, 3 ])

Parameters:

  • object (Object)

    The object to expanded.

Returns:

  • (Object)

    The provided object.

Since:

  • 1.0.0



34
# File 'build/mongoid-master/lib/mongoid/criteria/queryable/extensions/nil_class.rb', line 34

def __expanded__(object); object; end

#__intersect__(object) ⇒ Object

Add this object to nil.

Examples:

Add the object to a nil value.

nil.__intersect__([ 1, 2, 3 ])

Parameters:

  • object (Object)

    The object to intersect.

Returns:

  • (Object)

    The provided object.

Since:

  • 1.0.0



57
# File 'build/mongoid-master/lib/mongoid/criteria/queryable/extensions/nil_class.rb', line 57

def __intersect__(object); object; end

#__override__(object) ⇒ Object

Add this object to nil.

Examples:

Add the object to a nil value.

nil.__override__([ 1, 2, 3 ])

Parameters:

  • object (Object)

    The object to override.

Returns:

  • (Object)

    The provided object.

Since:

  • 1.0.0



69
# File 'build/mongoid-master/lib/mongoid/criteria/queryable/extensions/nil_class.rb', line 69

def __override__(object); object; end

#__union__(object) ⇒ Object

Add this object to nil.

Examples:

Add the object to a nil value.

nil.__union__([ 1, 2, 3 ])

Parameters:

  • object (Object)

    The object to union.

Returns:

  • (Object)

    The provided object.

Since:

  • 1.0.0



81
# File 'build/mongoid-master/lib/mongoid/criteria/queryable/extensions/nil_class.rb', line 81

def __union__(object); object; end