Module: Industrialist

Defined in:
lib/industrialist/type.rb,
lib/industrialist/config.rb,
lib/industrialist/builder.rb,
lib/industrialist/factory.rb,
lib/industrialist/railtie.rb,
lib/industrialist/version.rb,
lib/industrialist/registrar.rb,
lib/industrialist/manufacturable.rb,
lib/industrialist/warning_helper.rb

Defined Under Namespace

Modules: Factory, Manufacturable Classes: Builder, Config, Railtie, Registrar, Type, WarningHelper

Constant Summary collapse

VERSION =
'1.0.1'.freeze

Class Method Summary collapse

Class Method Details

.build(*args) ⇒ Object



11
12
13
# File 'lib/industrialist/builder.rb', line 11

def self.build(*args)
  Builder.build(*args)
end

.config {|Config| ... } ⇒ Object

Yields:



22
23
24
25
26
# File 'lib/industrialist/config.rb', line 22

def self.config
  yield(Config)

  Config.load_manufacturables
end

.registered_keys(type) ⇒ Object



57
58
59
# File 'lib/industrialist/registrar.rb', line 57

def self.registered_keys(type)
  Registrar.registered_keys(type)
end

.registered_typesObject



53
54
55
# File 'lib/industrialist/registrar.rb', line 53

def self.registered_types
  Registrar.registered_types
end