Sha256: 7b4aa9328090d624c1d926edaa58e23a1c9a2584888397d76bd73389eb769949
Contents?: true
Size: 501 Bytes
Versions: 3
Compression:
Stored size: 501 Bytes
Contents
class BlocklyInterpreter::ExtensionBlocks::ObjectPresentBlock < BlocklyInterpreter::Block include BlocklyInterpreter::DSLGenerator self.block_type = :object_present def value(execution_context) values['VALUE'].try!(:value, execution_context).present? end def to_dsl method_call_with_possible_block("object_present", "", values['VALUE']) end module DSLMethods def object_present(&proc) block :object_present do value :VALUE, &proc end end end end
Version data entries
3 entries across 3 versions & 1 rubygems