Class: SweetLoader::Scope

Inherits:
Object
  • Object
show all
Includes:
SweetLoader
Defined in:
lib/sweetloader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from SweetLoader

#autoload_modules, #autoload_scope, #include_and_extend

Constructor Details

#initialize(the_module, options = {}) ⇒ Scope

Returns a new instance of Scope.



51
52
53
54
# File 'lib/sweetloader.rb', line 51

def initialize the_module, options = {}
  @the_module = the_module
  @autoload_options = options
end

Instance Attribute Details

#autoload_optionsObject (readonly)

Returns the value of attribute autoload_options.



49
50
51
# File 'lib/sweetloader.rb', line 49

def autoload_options
  @autoload_options
end

#the_moduleObject (readonly)

Returns the value of attribute the_module.



49
50
51
# File 'lib/sweetloader.rb', line 49

def the_module
  @the_module
end

Instance Method Details

#nameObject



56
57
58
# File 'lib/sweetloader.rb', line 56

def name
  the_module.name
end