Method: Mongoid::Extensions::Array#multi_arged?

Defined in:
lib/mongoid/extensions/array.rb

#multi_arged?true, false

Is the array a set of multiple arguments in a method?

Examples:

Is this multi args?

[ 1, 2, 3 ].multi_arged?

Returns:

  • (true, false)

    If the array is multi args.

Since:

  • 3.0.0



76
77
78
# File 'lib/mongoid/extensions/array.rb', line 76

def multi_arged?
  !first.is_a?(Hash) && first.resizable? || size > 1
end