Methods
Constants
LIBRARIES | = | Hash.new |
This constant represents the collection of registered libraries. Each value in it must respond to the call method, accepting a single parameter (the container to register the library with). |
Classes and Modules
Module Needle::Extras::Module Needle::Extras::AttrInject
:: ::Class Needle::Extras::AttrInject::InjectorElement
::Module Needle::Extras::Multicast
:: ::Class Needle::Extras::Multicast::Target
::Module Needle::Extras::Version
Class Needle::Container
Public Instance methods
A convenience method for registering libraries with the "require-library" subsystem. name must correspond to a file to require with Kernel.require. mod is a module containing the registration method named by the registration_method parameter (defaulting to :register_library).
[ show source ]
# File lib/needle/extras/require-library.rb, line 27 27: def register_library( name, mod, registration_method=:register_services ) 28: LIBRARIES[ name ] = lambda do |container| 29: mod.__send__( registration_method, container ) 30: end 31: end