Sha256: 0157807f500153831945f939a7a40480bfa684d4744d0db24f7bb0497bf52ac1

Contents?: true

Size: 373 Bytes

Versions: 77

Compression:

Stored size: 373 Bytes

Contents

module Redcar
  class ApplicationSWT
    module ListenerHelpers
      def ignore_within_self
        name = __calling_method__
        unless singly_hash[name]
          singly_hash[name] = true
          yield
          singly_hash.delete(name)
        end
      end
      
      private
      
      def singly_hash
        @singly_hash ||= {}
      end
    end
  end
end

Version data entries

77 entries across 77 versions & 2 rubygems

Version Path
redcar-dev-0.12.16dev-java plugins/application_swt/lib/application_swt/listener_helpers.rb
redcar-dev-0.12.15dev-java plugins/application_swt/lib/application_swt/listener_helpers.rb
redcar-dev-0.12.14dev-java plugins/application_swt/lib/application_swt/listener_helpers.rb
redcar-dev-0.12.13dev-java plugins/application_swt/lib/application_swt/listener_helpers.rb
redcar-dev-0.12.12dev-java plugins/application_swt/lib/application_swt/listener_helpers.rb
redcar-dev-0.12.11dev-java plugins/application_swt/lib/application_swt/listener_helpers.rb
redcar-dev-0.12.10dev-java plugins/application_swt/lib/application_swt/listener_helpers.rb
redcar-dev-0.12.9dev-java plugins/application_swt/lib/application_swt/listener_helpers.rb
redcar-dev-0.12.8dev-java plugins/application_swt/lib/application_swt/listener_helpers.rb
redcar-dev-0.12.7dev-java plugins/application_swt/lib/application_swt/listener_helpers.rb
redcar-dev-0.12.6dev-java plugins/application_swt/lib/application_swt/listener_helpers.rb
redcar-dev-0.12.4dev-java plugins/application_swt/lib/application_swt/listener_helpers.rb
redcar-dev-0.12.3dev-java plugins/application_swt/lib/application_swt/listener_helpers.rb
redcar-dev-0.12.1dev-java plugins/application_swt/lib/application_swt/listener_helpers.rb
redcar-dev-0.12.0dev-java plugins/application_swt/lib/application_swt/listener_helpers.rb
redcar-0.11 plugins/swt/lib/swt/listener_helpers.rb
redcar-0.11.0dev plugins/swt/lib/swt/listener_helpers.rb
redcar-0.10 plugins/swt/lib/swt/listener_helpers.rb
redcar-0.9.2 plugins/swt/lib/swt/listener_helpers.rb
redcar-0.9.1 plugins/swt/lib/swt/listener_helpers.rb