Class: BlocklyInterpreter::CoreBlocks::ProceduresCallNoReturnBlock
- Inherits:
-
ProcedureBlock
- Object
- Block
- ProcedureBlock
- BlocklyInterpreter::CoreBlocks::ProceduresCallNoReturnBlock
- Defined in:
- lib/blockly_interpreter/core_blocks/procedures_call_no_return_block.rb
Defined Under Namespace
Modules: DSLMethods
Instance Attribute Summary
Attributes inherited from Block
#block_type, #comment, #comment_pinned, #fields, #is_shadow, #mutation, #next_block, #statements, #values, #x, #y
Instance Method Summary collapse
Methods inherited from ProcedureBlock
#arg_hash, #arg_names, #arg_values, #args_dsl, #to_dsl
Methods included from DSLGenerator
#deep_flatten, #formatted_keyword_args, #indent, #keyword_args_without_defaults, #method_call, #method_call_with_block_or_nothing, #method_call_with_possible_block, #start_block_to_dsl, #strip_trailing_whitespace, #timestamp_to_dsl
Methods inherited from Block
#each_block, #has_comment?, #has_position?, #initialize, #to_dsl, #to_xml, #to_xml_element, #value
Constructor Details
This class inherits a constructor from BlocklyInterpreter::Block
Instance Method Details
#execute_statement(execution_context) ⇒ Object
8 9 10 |
# File 'lib/blockly_interpreter/core_blocks/procedures_call_no_return_block.rb', line 8 def execute_statement(execution_context) execution_context.execute_procedure(procedure_name, arg_values(execution_context)) end |
#procedure_name ⇒ Object
4 5 6 |
# File 'lib/blockly_interpreter/core_blocks/procedures_call_no_return_block.rb', line 4 def procedure_name @procedure_name ||= mutation.try!(:[], 'name') end |