Class: Enumerator

Inherits:
Object
  • Object
show all
Defined in:
lib/in_every/enumerator_extensions.rb

Overview

nodoc

Instance Method Summary collapse

Instance Method Details

#in_every(int, &block) ⇒ Object

extension to create InEvery based on the enumeration

Parameters

int

number of calls in a cycle

block

what to execute randomly in cycle



11
12
13
# File 'lib/in_every/enumerator_extensions.rb', line 11

def in_every int, &block
  InEvery.new(self, int, block)
end