Sha256: 4d24b8e72d4a81a5a657cb8962caaca3930a5b71bff7d7bb581d72f6a05b200b
Contents?: true
Size: 468 Bytes
Versions: 3
Compression:
Stored size: 468 Bytes
Contents
class BlocklyInterpreter::CoreBlocks::LogicNegateBlock < BlocklyInterpreter::Block include BlocklyInterpreter::DSLGenerator self.block_type = :logic_negate def value(execution_context) !values['BOOL'].value(execution_context) end def to_dsl method_call_with_possible_block("logic_negate", "", values['BOOL']) end module DSLMethods def logic_negate(&proc) block :logic_negate do value 'BOOL', &proc end end end end
Version data entries
3 entries across 3 versions & 1 rubygems