Method: Enumerable#+@

Defined in:
lib/extra/enumerable.rb

#+@Object

Shorthand to get the size of the enumerable object in an array state.

Example: +[:a, :b, :c] #=> 3

Returns: Integer size



19
20
21
# File 'lib/extra/enumerable.rb', line 19

def +@
  to_a.size
end