Top Level Namespace

Defined Under Namespace

Modules: Kernel Classes: Array, File, Generator, Hash, MyClass, MyObject, MyString, NotReallyWeakRefSet, Sequence, String, StringIO

Instance Method Summary collapse

Instance Method Details

#shuffle!(arr) ⇒ Object



273
274
275
# File 'lib/sequence/weakrefset.rb', line 273

def shuffle!(arr)
  arr.sort_by{rand}    
end