Sha256: c9f441f54e62160dae1a9681dc505cec5b4ed9944a2841be064289637282c9ea

Contents?: true

Size: 1017 Bytes

Versions: 308

Compression:

Stored size: 1017 Bytes

Contents

#!/usr/bin/env ruby

#--
# Portions copyright 2004 by Jim Weirich (jim@weirichhouse.org).
# Portions copyright 2005 by Sam Ruby (rubys@intertwingly.net).
# All rights reserved.

# Permission is granted for use, copying, modification, distribution,
# and distribution of modified versions of this work as long as the
# above copyright notice is included.
#++

# We are defining method_added in Kernel and Object so that when
# BlankSlate overrides them later, we can verify that it correctly
# calls the older hooks.

module Kernel
  class << self
    attr_reader :k_added_names
    alias_method :preload_method_added, :method_added
    def method_added(name)
      preload_method_added(name)
      @k_added_names ||= []
      @k_added_names << name
    end
  end
end

class Object
  class << self
    attr_reader :o_added_names
    alias_method :preload_method_added, :method_added
    def method_added(name)
      preload_method_added(name)
      @o_added_names ||= []
      @o_added_names << name
    end
  end
end

Version data entries

308 entries across 265 versions & 58 rubygems

Version Path
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.6.0/gems/builder-3.2.3/test/preload.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/builder-3.2.3/test/preload.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/builder-3.2.3/test/preload.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/builder-3.2.3/test/preload.rb
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.6.0/gems/builder-3.2.3/test/preload.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/builder-3.2.3/test/preload.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/builder-3.2.3/test/preload.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/builder-3.2.3/test/preload.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/builder-3.2.3/test/preload.rb
vagrant-unbundled-2.2.6.1 vendor/bundle/ruby/2.6.0/gems/builder-3.2.3/test/preload.rb
vagrant-unbundled-2.2.6.0 vendor/bundle/ruby/2.6.0/gems/builder-3.2.3/test/preload.rb
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/builder-3.2.3/test/preload.rb
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/builder-3.2.3/test/preload.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.6.0/gems/builder-3.2.3/test/preload.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/gems/builder-3.2.3/test/preload.rb
zuora_connect_ui-0.8.2 vendor/ruby/2.6.0/gems/builder-3.2.3/test/preload.rb
zuora_connect_ui-0.8.1 vendor/ruby/2.6.0/gems/builder-3.2.3/test/preload.rb
zuora_connect_ui-0.8.0 vendor/ruby/2.6.0/gems/builder-3.2.3/test/preload.rb
spiral_form-0.1.1 vendor/bundle/gems/builder-3.2.3/test/preload.rb
spiral_form-0.1.0 vendor/bundle/gems/builder-3.2.3/test/preload.rb