Class: Rubuild::Load::NameSpace::Factory
- Inherits:
-
Object
- Object
- Rubuild::Load::NameSpace::Factory
- Defined in:
- lib/rubuild/load/namespace.rb
Overview
Rubuild::Load::NameSpace::Factory
Instance Method Summary collapse
-
#create ⇒ Object
Create a private execution context, and return it.
-
#initialize(load_class = Rubuild::Load::NameSpace::Context) ⇒ Factory
constructor
Create an private execution context factory.
Constructor Details
#initialize(load_class = Rubuild::Load::NameSpace::Context) ⇒ Factory
Create an private execution context factory. Execution contexts will be created on demand, from Rubuild::Load::NameSpace::Factory#create.
load_class
-
Superclass of private classes used for execution.
104 105 106 |
# File 'lib/rubuild/load/namespace.rb', line 104 def initialize(load_class = Rubuild::Load::NameSpace::Context) self.rubuild_load_namespace_factory__load_class = load_class end |
Instance Method Details
#create ⇒ Object
Create a private execution context, and return it.
- return
-
A newly created private execution context, sub-classed from Rubuild::Load::NameSpace#load_class.
111 112 113 |
# File 'lib/rubuild/load/namespace.rb', line 111 def create Class.new(self.rubuild_load_namespace_factory__load_class) end |