Sha256: 7cb13168a3266fad0f81eabd7a83a1890c616812696db28ef88b4f8ec31c6862

Contents?: true

Size: 331 Bytes

Versions: 5

Compression:

Stored size: 331 Bytes

Contents

module Konstructor
  module SimpleMethodHook

    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

5 entries across 5 versions & 1 rubygems

Version Path
konstructor-0.4.1 lib/konstructor/simple_method_hook.rb
konstructor-0.4.0 lib/konstructor/simple_method_hook.rb
konstructor-0.3.0 lib/konstructor/simple_method_hook.rb
konstructor-0.2.0 lib/konstructor/simple_method_hook.rb
konstructor-0.1.0 lib/konstructor/simple_method_hook.rb