Class: Needle::Container
Instance Method Summary collapse
-
#require_library(name) ⇒ Object
Require the library registered under the given name.
Instance Method Details
#require_library(name) ⇒ Object
Require the library registered under the given name. A Kernel.require is done on the name, and then if a library has been registered under that name, its #call method is invoked with the container as the parameter.
16 17 18 19 |
# File 'lib/needle/extras/require-library.rb', line 16 def require_library( name ) Kernel.require name LIBRARIES[ name ].call( self ) if LIBRARIES[ name ] end |