Sha256: 9ba7e5a7264fd6bd549c5ef9637d662791fc40bfd694816d68ea64d803fd5e67

Contents?: true

Size: 677 Bytes

Versions: 20

Compression:

Stored size: 677 Bytes

Contents

# Copyright (c) 2022 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
# frozen_string_literal: true

# Some developers override various methods on Delegator, which can often
# involve changing expected method parity/behavior which in turn prevents us
# from being able to reliably use affected methods. Let's alias these methods
# so that we always have access to them.
#
# This is a special case in that we're those developers, so we violate the cs__
# namespacing here to avoid that.
class Delegator
  # breaks from convention to not conflict w/ Object#respond_to?
  alias_method :cs__delegator_respond_to?, :respond_to?
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
contrast-agent-6.7.0 lib/contrast/extension/delegator.rb
contrast-agent-6.6.5 lib/contrast/extension/delegator.rb
contrast-agent-6.6.4 lib/contrast/extension/delegator.rb
contrast-agent-6.6.3 lib/contrast/extension/delegator.rb
contrast-agent-6.6.2 lib/contrast/extension/delegator.rb
contrast-agent-6.6.1 lib/contrast/extension/delegator.rb
contrast-agent-6.6.0 lib/contrast/extension/delegator.rb
contrast-agent-6.5.1 lib/contrast/extension/delegator.rb
contrast-agent-6.5.0 lib/contrast/extension/delegator.rb
contrast-agent-6.4.0 lib/contrast/extension/delegator.rb
contrast-agent-6.3.0 lib/contrast/extension/delegator.rb
contrast-agent-6.2.0 lib/contrast/extension/delegator.rb
contrast-agent-6.1.2 lib/contrast/extension/delegator.rb
contrast-agent-6.1.1 lib/contrast/extension/delegator.rb
contrast-agent-6.1.0 lib/contrast/extension/delegator.rb
contrast-agent-6.0.0 lib/contrast/extension/delegator.rb
contrast-agent-5.3.0 lib/contrast/extension/delegator.rb
contrast-agent-5.2.0 lib/contrast/extension/delegator.rb
contrast-agent-5.1.0 lib/contrast/extension/delegator.rb
contrast-agent-5.0.0 lib/contrast/extension/delegator.rb