Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/extensions/array.rb

Instance Method Summary collapse

Instance Method Details

#same(array) ⇒ Object



3
4
5
6
7
# File 'lib/extensions/array.rb', line 3

def same(array)
  temp_array = self.clone
  temp_array.length == array.length &&
    (temp_array-array).length == 0
end