Module: BlocklyInterpreter::ExtensionBlocks::ListsIncludeOperatorBlock::DSLMethods
- Defined in:
- lib/blockly_interpreter/extension_blocks/lists_include_operator_block.rb
Defined Under Namespace
Classes: ListIncludesBlockBuilder
Instance Method Summary collapse
- #lists_include(a = nil, b = nil, &proc) ⇒ Object
- #lists_not_include(a = nil, b = nil, &proc) ⇒ Object
Instance Method Details
#lists_include(a = nil, b = nil, &proc) ⇒ Object
40 41 42 43 44 |
# File 'lib/blockly_interpreter/extension_blocks/lists_include_operator_block.rb', line 40 def lists_include(a = nil, b = nil, &proc) @blocks << BlocklyInterpreter::ExtensionBlocks::ListsIncludeOperatorBlock::DSLMethods::ListIncludesBlockBuilder.new('lists_include', "INCLUDE", a, b).tap do |builder| builder.instance_exec(&proc) if proc end end |
#lists_not_include(a = nil, b = nil, &proc) ⇒ Object
46 47 48 49 50 |
# File 'lib/blockly_interpreter/extension_blocks/lists_include_operator_block.rb', line 46 def lists_not_include(a = nil, b = nil, &proc) @blocks << BlocklyInterpreter::ExtensionBlocks::ListsIncludeOperatorBlock::DSLMethods::ListIncludesBlockBuilder.new('lists_include', "NINCLUDE", a, b).tap do |builder| builder.instance_exec(&proc) if proc end end |