Sha256: f31b71d0ac9e0adafdaee7471491b226d25ac2e59b4f4f3544e0eabd9b645e04
Contents?: true
Size: 421 Bytes
Versions: 16
Compression:
Stored size: 421 Bytes
Contents
# frozen_string_literal: true b = box({ left: 333, color: :blue, smooth: 6, id: :the_box2 }) t = text({ id: :the_text, data: 'touch the box and wait!' }) exec_code=lambda do wait 2 do t.data('it works!! ') end end b.code(:hello) do circle({ left: rand(333), color: :green }) end b.run(:hello) b.touch(:tap) do { color: :cyan, target: { the_text: { data: :super! } }, run: exec_code } end
Version data entries
16 entries across 16 versions & 1 rubygems