Method: Origin::Extensions::Object#__array__

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

#__array__Array

Get the object as an array.

Examples:

Get the object as an array.

4.__array__

Returns:

  • (Array)

    The wrapped object.

Since:

  • 1.0.0



125
126
127
# File 'lib/origin/extensions/object.rb', line 125

def __array__
  [ self ]
end