Sha256: 3d5a8ea734d02116e1c689f63161b3dc1da5e5d2301c461805e27ce362eb56fb

Contents?: true

Size: 197 Bytes

Versions: 5

Compression:

Stored size: 197 Bytes

Contents

class Array
  #
  # Choose a random element from the array
  #
  def random_element
    warn "Deprecated; use built-in #sample instead"
    sample
  end unless method_defined?(:random_element)
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gorillib-0.6.0 lib/gorillib/deprecated/array/random.rb
gorillib-0.5.2 lib/gorillib/deprecated/array/random.rb
gorillib-0.5.0 lib/gorillib/deprecated/array/random.rb
gorillib-0.4.2 lib/gorillib/deprecated/array/random.rb
gorillib-0.4.2pre lib/gorillib/deprecated/array/random.rb