Module: BlockRepeater::Repeatable

Included in:
BlockRepeater
Defined in:
lib/block_repeater/repeatable.rb

Overview

A nicer way to access the Repeater without setting up the class manually

Instance Method Summary collapse

Instance Method Details

#repeat(**kwargs, &block) ⇒ Object

Create an instance of the Repeater class



16
17
18
# File 'lib/block_repeater/repeatable.rb', line 16

def repeat(**kwargs, &block)
  Repeater.new(manual_repeat: false, **kwargs, &block)
end