Class: Range

Inherits:
Object show all
Defined in:
lib/can_has_fixtures/core_ext/range.rb

Instance Method Summary collapse

Instance Method Details

#of(&block) ⇒ Object



6
7
8
# File 'lib/can_has_fixtures/core_ext/range.rb', line 6

def of(&block)
  entries.random.of(&block)
end

#randomObject



2
3
4
# File 'lib/can_has_fixtures/core_ext/range.rb', line 2

def random
  entries.random
end