Class: RArray

Inherits:
Array
  • Object
show all
Defined in:
lib/utils/r_array.rb

Instance Method Summary collapse

Instance Method Details

#[](index) ⇒ Object



2
3
4
5
6
7
8
# File 'lib/utils/r_array.rb', line 2

def [](index)
  if index == :r
    return super(rand(self.length))
  else
    return super(index)
  end
end