Module: AssemblyLine
- Extended by:
- SingleForwardable
- Defined in:
- lib/assembly_line.rb,
lib/assembly_line/registry.rb,
lib/assembly_line/constructor.rb,
lib/assembly_line/generic_context.rb
Defined Under Namespace
Modules: Registry
Classes: Constructor, GenericContext
Constant Summary
collapse
- VERSION =
"0.2.1".freeze
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.assemble(name, context, options = {}) ⇒ Object
10
11
12
|
# File 'lib/assembly_line.rb', line 10
def self.assemble(name, context, options={})
Registry.locate(name).assemble(context, options)
end
|
.define(name, &block) ⇒ Object
14
15
16
|
# File 'lib/assembly_line.rb', line 14
def self.define(name, &block)
Registry.add(name, block)
end
|
.generic_context ⇒ Object
18
19
20
|
# File 'lib/assembly_line.rb', line 18
def self.generic_context
@generic_context ||= GenericContext.new
end
|
Instance Method Details
#Assemble(name, options = {}) ⇒ Object
22
23
24
|
# File 'lib/assembly_line.rb', line 22
def Assemble(name, options={})
AssemblyLine.assemble(name, self, options)
end
|