Sha256: 5d132aeb6e4f92fbca85fb24202cbe6e68e278918c9317f78241baee91a368c6
Contents?: true
Size: 580 Bytes
Versions: 36
Compression:
Stored size: 580 Bytes
Contents
# frozen_string_literal: true module Bundler if defined? ::Deprecate Deprecate = ::Deprecate elsif defined? Gem::Deprecate Deprecate = Gem::Deprecate else class Deprecate; end end unless Deprecate.respond_to?(:skip_during) def Deprecate.skip_during original = skip self.skip = true yield ensure self.skip = original end end unless Deprecate.respond_to?(:skip) def Deprecate.skip @skip end end unless Deprecate.respond_to?(:skip=) def Deprecate.skip=(skip) @skip = skip end end end
Version data entries
36 entries across 36 versions & 3 rubygems