Class: SweetLoader::Scope
- Inherits:
-
Object
- Object
- SweetLoader::Scope
- Includes:
- SweetLoader
- Defined in:
- lib/sweetloader.rb
Instance Attribute Summary collapse
-
#autoload_options ⇒ Object
readonly
Returns the value of attribute autoload_options.
-
#the_module ⇒ Object
readonly
Returns the value of attribute the_module.
Instance Method Summary collapse
-
#initialize(the_module, options = {}) ⇒ Scope
constructor
A new instance of Scope.
- #name ⇒ Object
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, = {} @the_module = the_module @autoload_options = end |
Instance Attribute Details
#autoload_options ⇒ Object (readonly)
Returns the value of attribute autoload_options.
49 50 51 |
# File 'lib/sweetloader.rb', line 49 def @autoload_options end |
#the_module ⇒ Object (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
#name ⇒ Object
56 57 58 |
# File 'lib/sweetloader.rb', line 56 def name the_module.name end |