Class: Array

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

Overview

:nodoc:

Direct Known Subclasses

Origami::Array

Instance Method Summary collapse

Instance Method Details

#shuffleObject



43
44
45
# File 'lib/origami/object.rb', line 43

def shuffle
  sort_by { rand }
end

#shuffle!Object



47
48
49
# File 'lib/origami/object.rb', line 47

def shuffle!
  self.replace shuffle
end

#to_oObject



39
40
41
# File 'lib/origami/object.rb', line 39

def to_o
  Origami::Array.new(self)
end