Sha256: b7491763a3f49406bbfd57e276fdf1bd519ab10070f156c1213988f0a60b0074

Contents?: true

Size: 263 Bytes

Versions: 4

Compression:

Stored size: 263 Bytes

Contents

# frozen_string_literal: true
class Shoes
  module Swt
    class SelectionListener
      def initialize(radio, &blk)
        @radio = radio
        @blk = blk
      end

      def widget_selected(event)
        @blk.call @radio, event
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
shoes-swt-4.0.0.pre12 lib/shoes/swt/common/selection_listener.rb
shoes-swt-4.0.0.pre11 lib/shoes/swt/common/selection_listener.rb
shoes-swt-4.0.0.pre10 lib/shoes/swt/common/selection_listener.rb
shoes-swt-4.0.0.pre9 lib/shoes/swt/common/selection_listener.rb