Class: Industrialist::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/industrialist/config.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.require_method=(value) ⇒ Object

Sets the attribute require_method

Parameters:

  • value

    the value to set the attribute require_method to.



4
5
6
# File 'lib/industrialist/config.rb', line 4

def require_method=(value)
  @require_method = value
end

Class Method Details

.load_manufacturablesObject



10
11
12
# File 'lib/industrialist/config.rb', line 10

def load_manufacturables
  manufacturable_paths.each { |path| Dir["#{path}/**/*.rb"].each { |file| Kernel.public_send(require_method, file) } }
end

.manufacturable_pathsObject



6
7
8
# File 'lib/industrialist/config.rb', line 6

def manufacturable_paths
  @manufacturable_paths ||= []
end