Class: Array

Inherits:
Object show all
Includes:
Average
Defined in:
lib/vex/boot/array.rb,
lib/vex/base/array/avg.rb,
lib/vex/base/hash/slop.rb,
lib/vex/base/object/insp.rb

Direct Known Subclasses

RangeArray

Defined Under Namespace

Modules: AtRandom, Average, Cross, EachBatch, Etest, ParallelMap

Instance Method Summary collapse

Methods included from Average

#avg

Instance Method Details

#extract_options!Object



2
3
4
5
6
7
8
# File 'lib/vex/boot/array.rb', line 2

def extract_options!
  if last.is_a?(Hash)
    pop
  else
    {}
  end
end

#inspObject



70
71
72
# File 'lib/vex/base/object/insp.rb', line 70

def insp
  self.class == Array && instance_variables.empty? ? insp_body : super
end

#slop!Object



73
74
75
# File 'lib/vex/base/hash/slop.rb', line 73

def slop!
  each(&:"slop!")
end