Sha256: e05544291020137a0d51d828c093f37f490430eaf0764aeab08c394cb04a0be6

Contents?: true

Size: 256 Bytes

Versions: 2

Compression:

Stored size: 256 Bytes

Contents

module QRTools
  module UI
    class Window
      ###
      # Create a new window with +name+
      def initialize name
        @name = name
        if block_given?
          show
          yield self
          hide
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
qrtools-1.0.1 lib/qrtools/ui/window.rb
qrtools-1.0.0 lib/qrtools/ui/window.rb