module Origin::Extensions::NilClass

This module contains additional nil behaviour.

Public Instance Methods

__add__(object) click to toggle source

Add this object to nil.

@example Add the object to a nil value.

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

@param [ Object ] object The object to add.

@return [ Object ] The provided object.

@since 1.0.0

# File lib/origin/extensions/nil_class.rb, line 17
def __add__(object); object; end
__evolve_date__()
Alias for: __evolve_time__
__evolve_time__() click to toggle source

Evolve the nil into a date or time.

@example Evolve the nil.

nil.__evolve_time__

@return [ nil ] nil.

@since 1.0.0

# File lib/origin/extensions/nil_class.rb, line 39
def __evolve_time__; self; end
Also aliased as: __evolve_date__
__expanded__(object) click to toggle source

Add this object to nil.

@example Add the object to a nil value.

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

@param [ Object ] object The object to expanded.

@return [ Object ] The provided object.

@since 1.0.0

# File lib/origin/extensions/nil_class.rb, line 29
def __expanded__(object); object; end
__intersect__(object) click to toggle source

Add this object to nil.

@example Add the object to a nil value.

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

@param [ Object ] object The object to intersect.

@return [ Object ] The provided object.

@since 1.0.0

# File lib/origin/extensions/nil_class.rb, line 52
def __intersect__(object); object; end
__override__(object) click to toggle source

Add this object to nil.

@example Add the object to a nil value.

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

@param [ Object ] object The object to override.

@return [ Object ] The provided object.

@since 1.0.0

# File lib/origin/extensions/nil_class.rb, line 64
def __override__(object); object; end
__union__(object) click to toggle source

Add this object to nil.

@example Add the object to a nil value.

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

@param [ Object ] object The object to union.

@return [ Object ] The provided object.

@since 1.0.0

# File lib/origin/extensions/nil_class.rb, line 76
def __union__(object); object; end