Sha256: a57e271614276683fdf0be8c1df2bfb4ba2404e1391dad351a2673e9aa96a41b

Contents?: true

Size: 269 Bytes

Versions: 1

Compression:

Stored size: 269 Bytes

Contents

class Shoes
  class KeyEvent
    def initialize(app, &blk)
      @app = app
      @gui = Shoes.backend_for self, &blk
    end

    attr_reader :app

    def clear
      @gui.clear
    end
  end

  class Keypress < KeyEvent ; end
  class Keyrelease < KeyEvent ; end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoes-4.0.0.pre1 lib/shoes/key_event.rb