class Manufacturable::Config
Attributes
require_method[W]
Public Class Methods
load_paths()
click to toggle source
# File lib/manufacturable/config.rb, line 10 def load_paths paths.each { |path| require_path(path) } end
paths()
click to toggle source
# File lib/manufacturable/config.rb, line 6 def paths @paths ||= [] end
Private Class Methods
require_file(file)
click to toggle source
# File lib/manufacturable/config.rb, line 24 def require_file(file) Kernel.public_send(require_method, file) end
require_method()
click to toggle source
# File lib/manufacturable/config.rb, line 16 def require_method @require_method || :require end
require_path(path)
click to toggle source
# File lib/manufacturable/config.rb, line 20 def require_path(path) Dir["#{path}/**/*.rb"].each { |file| require_file(file) } end