Module: Im

Extended by:
Im, ConstPath
Included in:
Im
Defined in:
lib/im.rb,
lib/im/error.rb,
lib/im/loader.rb,
lib/im/version.rb,
lib/im/registry.rb,
lib/im/inflector.rb,
lib/im/const_path.rb,
lib/im/gem_loader.rb,
lib/im/gem_inflector.rb,
lib/im/explicit_namespace.rb

Defined Under Namespace

Modules: ConstPath, ExplicitNamespace, Internal, ModuleConstAdded, Registry Classes: Error, GemInflector, GemLoader, Inflector, InvalidModuleName, Loader, NameError, ReloadingDisabledError, SetupRequired

Constant Summary collapse

VERSION =
"0.2.2"

Instance Method Summary collapse

Methods included from ConstPath

cpath, permanent_cpath, permanent_cpath?, temporary_cpath?

Instance Method Details

#import(path) ⇒ Object



20
21
22
23
# File 'lib/im.rb', line 20

def import(path)
  _, feature_path = $:.resolve_feature_path(path)
  Registry.loader_for(feature_path) if feature_path
end