Sha256: 4c727c9426cda249546c0c363582f29396cdb1e45199f04e48dd7fb3efd0ab20
Contents?: true
Size: 482 Bytes
Versions: 81
Compression:
Stored size: 482 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 # alert :in 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
81 entries across 81 versions & 1 rubygems