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



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

def shuffle
  sort_by { rand }
end

#shuffle!Object



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

def shuffle!
  self.replace shuffle
end

#to_oObject



35
36
37
# File 'lib/origami/object.rb', line 35

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