Sha256: 58cd418523842443118ebd7d829fd640e652f8c03fc302f8760e1682bfd0fed9

Contents?: true

Size: 369 Bytes

Versions: 3

Compression:

Stored size: 369 Bytes

Contents

require_relative "../lib/ray"

ray.new_screen('Visibility')

ray('collapsed by default').hide

ray = ray('updating this message in two seconds')
sleep(2)
ray.send('updated message')

ray = ray('removing this item in two seconds')
sleep(2)
ray.remove

sleep(1)
ray('hiding the app window for two seconds...')
sleep(1)
ray.hide_app
sleep(2)
ray.show_app
ray('Hi again!')

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-ray-0.4.1 examples/visibility.rb
ruby-ray-0.4.0 examples/visibility.rb
ruby-ray-0.3.0 examples/visibility.rb