Parent

Forgery::Extensions::Array

Public Instance Methods

random() click to toggle source

The only forgery extension that returns an extended object

# File lib/forgery/extensions/array.rb, line 10
def random
  Forgery::Extend(self[Kernel.rand(size)])
end
random_subset(len=2) click to toggle source
# File lib/forgery/extensions/array.rb, line 14
def random_subset(len=2)
  rs = []
  len.times { rs << random }
  rs
end
unextend() click to toggle source
# File lib/forgery/extensions/array.rb, line 5
def unextend
  to_a
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.