Module: BlocklyInterpreter::CoreBlocks::ListsCreateWithBlock::DSLMethods
- Defined in:
- lib/blockly_interpreter/core_blocks/lists_create_with_block.rb
Defined Under Namespace
Classes: ListsCreateWithBlockBuilder
Instance Method Summary collapse
Instance Method Details
#lists_create_with(&proc) ⇒ Object
42 43 44 45 46 |
# File 'lib/blockly_interpreter/core_blocks/lists_create_with_block.rb', line 42 def lists_create_with(&proc) @blocks << BlocklyInterpreter::CoreBlocks::ListsCreateWithBlock::DSLMethods::ListsCreateWithBlockBuilder.new('lists_create_with').tap do |builder| builder.instance_exec(&proc) end end |