Class: Industrialist::Config
- Inherits:
-
Object
- Object
- Industrialist::Config
- Defined in:
- lib/industrialist/config.rb
Class Attribute Summary collapse
-
.require_method ⇒ Object
writeonly
Sets the attribute require_method.
Class Method Summary collapse
Class Attribute Details
.require_method=(value) ⇒ Object
Sets the attribute require_method
4 5 6 |
# File 'lib/industrialist/config.rb', line 4 def require_method=(value) @require_method = value end |
Class Method Details
.load_manufacturables ⇒ Object
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_paths ⇒ Object
6 7 8 |
# File 'lib/industrialist/config.rb', line 6 def manufacturable_paths @manufacturable_paths ||= [] end |