Module: Manufacturable
- Defined in:
- lib/manufacturable.rb,
lib/manufacturable/item.rb,
lib/manufacturable/config.rb,
lib/manufacturable/builder.rb,
lib/manufacturable/factory.rb,
lib/manufacturable/railtie.rb,
lib/manufacturable/version.rb,
lib/manufacturable/registrar.rb,
lib/manufacturable/object_factory.rb
Defined Under Namespace
Modules: Factory, Item
Classes: Builder, Config, ObjectFactory, Railtie, Registrar
Constant Summary
collapse
- VERSION =
"2.0.0"
Class Method Summary
collapse
Class Method Details
.build(*args, **kwargs, &block) ⇒ Object
9
10
11
|
# File 'lib/manufacturable.rb', line 9
def self.build(*args, **kwargs, &block)
Builder.build(*args, **kwargs, &block)
end
|
.build_all(*args, **kwargs, &block) ⇒ Object
21
22
23
|
# File 'lib/manufacturable.rb', line 21
def self.build_all(*args, **kwargs, &block)
Builder.build_all(*args, **kwargs, &block)
end
|
.build_many(*args, **kwargs, &block) ⇒ Object
17
18
19
|
# File 'lib/manufacturable.rb', line 17
def self.build_many(*args, **kwargs, &block)
Builder.build_all(*args, **kwargs, &block)
end
|
.build_one(*args, **kwargs, &block) ⇒ Object
13
14
15
|
# File 'lib/manufacturable.rb', line 13
def self.build_one(*args, **kwargs, &block)
Builder.build_one(*args, **kwargs, &block)
end
|
.builds?(type, key) ⇒ Boolean
25
26
27
|
# File 'lib/manufacturable.rb', line 25
def self.builds?(type, key)
Builder.builds?(type, key)
end
|
.config {|Config| ... } ⇒ Object
33
34
35
36
|
# File 'lib/manufacturable.rb', line 33
def self.config
yield(Config)
Config.load_paths
end
|
.reset! ⇒ Object
29
30
31
|
# File 'lib/manufacturable.rb', line 29
def self.reset!
Registrar.reset!
end
|