Class: MG::Repeat

Inherits:
Action show all
Defined in:
doc/API_reference.rb

Constructors collapse

FOREVER =

This constant is used as a count value indicating an infinite loop.

-1

Constructors collapse

Methods inherited from Action

#clone, #done?, #reverse

Constructor Details

#initialize(target_action, times) ⇒ Repeat

Creates an action that repeats the provided action a certain number of times.

Parameters:

  • target_action (Action)

    the action to repeat.

  • times (Integer)

    the number of times to repeat.



306
# File 'doc/API_reference.rb', line 306

def initialize(target_action, times); end