Sha256: b7bef280e4e71dee703964b41b9ba6c1ade14313ac107598631009b16943155f
Contents?: true
Size: 581 Bytes
Versions: 7
Compression:
Stored size: 581 Bytes
Contents
# frozen_string_literal: true a = box({ id: :my_box, left: 333 }) do |p| puts "the param pass to the box is: #{p}" wait 2 do left(120) end end b = Atome.new( { shape: { renderers: [:browser], id: :view_test, type: :shape, attach: [:view], left: 0, width: 90, top: 0, height: 90, overflow: :auto, color: { renderers: [:browser], id: :view_test_color, type: :color, attach: [:view_test], red: 1, green: 0.15, blue: 0.15, alpha: 1 } } } ) do |p| puts "the param pass to the atome is: #{p}" end a.run(:hello) b.run(:hi)
Version data entries
7 entries across 7 versions & 1 rubygems