Module: BlocklyInterpreter::CoreBlocks::RepeatTimesBlock::DSLMethods
- Defined in:
- lib/blockly_interpreter/core_blocks/repeat_times_block.rb
Defined Under Namespace
Classes: RepeatBlockBuilder
Instance Method Summary
collapse
Instance Method Details
#controls_repeat_ext(&proc) ⇒ Object
#repeat_times(n, &proc) ⇒ Object
26
27
28
29
30
31
|
# File 'lib/blockly_interpreter/core_blocks/repeat_times_block.rb', line 26
def repeat_times(n, &proc)
controls_repeat_ext do
times { math_number n }
action &proc
end
end
|