Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

vistahigherlearning / logstash   deb

Repository URL to install this package:

/ opt / logstash / vendor / bundle / jruby / 1.9 / gems / extlib-0.9.16 / lib / extlib / local_object_space.rb

module Extlib
  module LocalObjectSpace
    def self.extended(klass)
      (class << klass; self; end).send :attr_accessor, :hook_scopes
      klass.hook_scopes = []
    end

    def object_by_id(object_id)
      self.hook_scopes.detect {|object| object.object_id == object_id}
    end
  end
end