Module: MadderLib::Conditional::Repeat::Phrase

Included in:
Phrase
Defined in:
lib/madderlib/conditional/repeat.rb

Overview

Recur::Phrase

Introduces support for repeating usage of a Phrase. The Phrase itself is largely uninvolved; it simply uses the repeat logic of its Instruction

See: Recur::Instruction

Instance Method Summary collapse

Instance Method Details

#repeat(*args, &block) ⇒ Object Also known as: repeats, repeating, times, while

Adds repetition logic to the current Instruction

See: Instruction#repeat



18
19
20
# File 'lib/madderlib/conditional/repeat.rb', line 18

def repeat(*args, &block)
	self.instruction.repeat *args, &block
end