Sha256: 29e6d5cce0b5feb585e5249397397be0c5dac5a36fbdad12f3b69ac870ebb653
Contents?: true
Size: 468 Bytes
Versions: 3
Compression:
Stored size: 468 Bytes
Contents
# frozen_string_literal: true b = box({ left: 666, color: :blue, smooth: 6, id: :the_box2 }) b.over(true) do b.color(:black) # puts "I'm inside" end b.over(:enter) do puts "in" puts "enter" b.width= b.width+30 b.color(:yellow) end b.over(:leave) do b.height= b.height+10 puts "out" puts "leave" # alert :out b.color(:orange) end # t=b.text('touch me to stop over leave') b.touch(true) do b.over({ remove: :enter }) t.data('finished') end
Version data entries
3 entries across 3 versions & 1 rubygems