Sha256: d2476df95553352a0d3c62b067fc674595a4b82234d1eb9b3f167d4bb976c4af

Contents?: true

Size: 255 Bytes

Versions: 75

Compression:

Stored size: 255 Bytes

Contents

module Redcar
  module ReentryHelpers
    def ignore_changes
      @ignore_changes ||= Hash.new(0)
    end
    
    def ignore(name)
      ignore_changes[name] += 1
      yield if ignore_changes[name] == 1
      ignore_changes[name] -= 1
    end
  end
end

Version data entries

75 entries across 75 versions & 2 rubygems

Version Path
redcar-0.13 plugins/core/lib/core/reentry_helpers.rb
redcar-dev-0.13.5dev plugins/core/lib/core/reentry_helpers.rb
redcar-dev-0.13.4dev plugins/core/lib/core/reentry_helpers.rb
redcar-dev-0.13.3dev plugins/core/lib/core/reentry_helpers.rb
redcar-dev-0.13.2dev plugins/core/lib/core/reentry_helpers.rb
redcar-dev-0.13.1dev plugins/core/lib/core/reentry_helpers.rb
redcar-0.12.1 plugins/core/lib/core/reentry_helpers.rb
redcar-dev-0.13.0dev plugins/core/lib/core/reentry_helpers.rb
redcar-0.12 plugins/core/lib/core/reentry_helpers.rb
redcar-dev-0.12.27dev plugins/core/lib/core/reentry_helpers.rb
redcar-dev-0.12.26dev plugins/core/lib/core/reentry_helpers.rb
redcar-dev-0.12.25dev plugins/core/lib/core/reentry_helpers.rb
redcar-dev-0.12.24dev plugins/core/lib/core/reentry_helpers.rb
redcar-dev-0.12.23dev plugins/core/lib/core/reentry_helpers.rb
redcar-dev-0.12.22dev plugins/core/lib/core/reentry_helpers.rb
redcar-dev-0.12.21dev plugins/core/lib/core/reentry_helpers.rb
redcar-dev-0.12.20dev plugins/core/lib/core/reentry_helpers.rb
redcar-dev-0.12.19dev plugins/core/lib/core/reentry_helpers.rb
redcar-dev-0.12.18dev plugins/core/lib/core/reentry_helpers.rb
redcar-dev-0.12.17dev plugins/core/lib/core/reentry_helpers.rb