Class: BlocklyInterpreter::ExtensionBlocks::ListsAppendBlock::DSLMethods::ListsAppendBlockBuilder

Inherits:
DSL::BlockBuilder
  • Object
show all
Defined in:
lib/blockly_interpreter/extension_blocks/lists_append_block.rb

Instance Attribute Summary

Attributes inherited from DSL::BlockBuilder

#block_type, #comment, #comment_pinned, #fields, #is_shadow, #mutation_attrs, #mutation_child_procs, #statements, #values, #x, #y

Instance Method Summary collapse

Methods inherited from DSL::BlockBuilder

#build_subblock, #comment_to_xml, #field, #field_to_xml, #initialize, #mutation_attr, #mutation_child, #mutations_to_xml, #set_comment, #set_position!, #shadow!, #statement, #subblock_to_xml, #tag_name, #to_xml, #value

Constructor Details

This class inherits a constructor from BlocklyInterpreter::DSL::BlockBuilder

Instance Method Details

#item(&proc) ⇒ Object



23
24
25
# File 'lib/blockly_interpreter/extension_blocks/lists_append_block.rb', line 23

def item(&proc)
  value("VALUE", &proc)
end

#list(&proc) ⇒ Object



19
20
21
# File 'lib/blockly_interpreter/extension_blocks/lists_append_block.rb', line 19

def list(&proc)
  value("LIST", &proc)
end