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-0.3.9.0dev plugins/application_swt/lib/application_swt/swt/listener_helpers.rb
redcar-0.3.8.4 plugins/application_swt/lib/application_swt/swt/listener_helpers.rb
redcar-0.3.8.3 plugins/application_swt/lib/application_swt/swt/listener_helpers.rb
redcar-0.3.8.2 plugins/application_swt/lib/application_swt/swt/listener_helpers.rb
redcar-0.3.8.1 plugins/application_swt/lib/application_swt/swt/listener_helpers.rb
redcar-0.3.8 plugins/application_swt/lib/application_swt/swt/listener_helpers.rb
redcar-0.3.7.1 plugins/application_swt/lib/application_swt/swt/listener_helpers.rb
redcar-0.3.7 plugins/application_swt/lib/application_swt/swt/listener_helpers.rb
redcar-0.3.6 plugins/application_swt/lib/application_swt/swt/listener_helpers.rb
redcar-0.3.5 plugins/application_swt/lib/application_swt/swt/listener_helpers.rb
redcar-0.3.4.3 plugins/application_swt/lib/application_swt/swt/listener_helpers.rb
redcar-0.3.4.2 plugins/application_swt/lib/application_swt/swt/listener_helpers.rb
redcar-0.3.4.1 plugins/application_swt/lib/application_swt/swt/listener_helpers.rb
redcar-0.3.4 plugins/application_swt/lib/application_swt/swt/listener_helpers.rb
redcar-0.3.3 plugins/application_swt/lib/application_swt/swt/listener_helpers.rb
redcar-0.3.2dev plugins/application_swt/lib/application_swt/swt/listener_helpers.rb
redcar-0.3.1dev plugins/application_swt/lib/application_swt/swt/listener_helpers.rb