Module: Origin::Extensions::NilClass

Defined in:
lib/origin/extensions/nil_class.rb

Overview

This module contains additional nil behaviour.

Instance Method Summary (collapse)

Instance Method Details

- (Object) __add__(object)

Add this object to nil.

Examples:

Add the object to a nil value.

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

Since:

  • 1.0.0



18
# File 'lib/origin/extensions/nil_class.rb', line 18

def __add__(object); object; end

- (nil) __evolve_time__ Also known as: __evolve_date__

Evolve the nil into a date or time.

Examples:

Evolve the nil.

nil.__evolve_time__

Since:

  • 1.0.0



40
# File 'lib/origin/extensions/nil_class.rb', line 40

def __evolve_time__; self; end

- (Object) __expanded__(object)

Add this object to nil.

Examples:

Add the object to a nil value.

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

Since:

  • 1.0.0



30
# File 'lib/origin/extensions/nil_class.rb', line 30

def __expanded__(object); object; end

- (Object) __intersect__(object)

Add this object to nil.

Examples:

Add the object to a nil value.

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

Since:

  • 1.0.0



53
# File 'lib/origin/extensions/nil_class.rb', line 53

def __intersect__(object); object; end

- (Object) __override__(object)

Add this object to nil.

Examples:

Add the object to a nil value.

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

Since:

  • 1.0.0



65
# File 'lib/origin/extensions/nil_class.rb', line 65

def __override__(object); object; end

- (Object) __union__(object)

Add this object to nil.

Examples:

Add the object to a nil value.

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

Since:

  • 1.0.0



77
# File 'lib/origin/extensions/nil_class.rb', line 77

def __union__(object); object; end