Class: Array

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#same?(y) ⇒ Boolean

compares two arrays to determine if they both contain the same elements

Returns:

  • (Boolean)


144
145
146
# File 'lib/tickle.rb', line 144

def same?(y)
  self.sort == y.sort
end