Libraries
»
can_has_fixtures
(0.1.4)
»
Index (A)
»
Array
Class: Array
Inherits:
Object
Object
Array
show all
Defined in:
lib/can_has_fixtures/core_ext/array.rb
Instance Method Summary
collapse
#
random
⇒ Object
Instance Method Details
#
random
⇒
Object
2 3 4
# File 'lib/can_has_fixtures/core_ext/array.rb', line 2
def
random
self
[
rand
(
size
)
]
end