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
Defined Under Namespace
Modules: AtRandom, Average, Cross, EachBatch, Etest, ParallelMap
Instance Method Summary
collapse
Methods included from Average
#avg
Instance Method Details
2
3
4
5
6
7
8
|
# File 'lib/vex/boot/array.rb', line 2
def
if last.is_a?(Hash)
pop
else
{}
end
end
|
70
71
72
|
# File 'lib/vex/base/object/insp.rb', line 70
def insp
self.class == Array && instance_variables.empty? ? insp_body : super
end
|
73
74
75
|
# File 'lib/vex/base/hash/slop.rb', line 73
def slop!
each(&:"slop!")
end
|