Sha256: 162a124858c2ec5209e95772dce695089a682e31f9209297aa37d262d3f4bfe6

Contents?: true

Size: 1.02 KB

Versions: 95

Compression:

Stored size: 1.02 KB

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

#--
# 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

95 entries across 57 versions & 18 rubygems

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/builder-3.2.4/test/preload.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/builder-3.2.4/test/preload.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/builder-3.2.4/test/preload.rb
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/builder-3.2.4/test/preload.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/builder-3.2.4/test/preload.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/builder-3.2.4/test/preload.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/builder-3.2.4/test/preload.rb
rubypitaya-3.12.5 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/builder-3.2.4/test/preload.rb
rubypitaya-3.12.4 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/builder-3.2.4/test/preload.rb
rubypitaya-3.12.3 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/builder-3.2.4/test/preload.rb
rubypitaya-3.12.2 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/builder-3.2.4/test/preload.rb
op_connect-0.1.2 vendor/bundle/ruby/3.1.0/gems/builder-3.2.4/test/preload.rb
ric-0.14.2 vendor/bundle/ruby/2.7.0/gems/builder-3.2.4/test/preload.rb
ric-0.14.1 vendor/bundle/ruby/2.7.0/gems/builder-3.2.4/test/preload.rb
phillipug-foodie-0.1.0 .vendor/ruby/3.0.0/gems/builder-3.2.4/test/preload.rb
ric-0.14.0 vendor/bundle/ruby/2.7.0/gems/builder-3.2.4/test/preload.rb
vagrant-unbundled-2.2.19.0 vendor/bundle/ruby/3.0.0/gems/builder-3.2.4/test/preload.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/builder-3.2.4/test/preload.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/builder-3.2.4/test/preload.rb
vagrant-unbundled-2.2.18.0 vendor/bundle/ruby/3.0.0/gems/builder-3.2.4/test/preload.rb