Sha256: 471391b34eca4d5a768d7029946d7cbb0d799fe2c924896db23f727d16ef596b

Contents?: true

Size: 354 Bytes

Versions: 6

Compression:

Stored size: 354 Bytes

Contents

module Konstructor
  # @private
  module SimpleMethodHook # :nodoc:

    private

    def method_added(name)
      Konstructor.method_added_to_klass(self, name)
      super
    end

    def self.setup(base)
      class << base
        # Ruby itself checks against double include
        include Konstructor::SimpleMethodHook
      end
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
konstructor-1.0.2 lib/konstructor/simple_method_hook.rb
konstructor-1.0.1 lib/konstructor/simple_method_hook.rb
konstructor-1.0.0 lib/konstructor/simple_method_hook.rb
konstructor-0.4.7 lib/konstructor/simple_method_hook.rb
konstructor-0.4.6 lib/konstructor/simple_method_hook.rb
konstructor-0.4.5 lib/konstructor/simple_method_hook.rb