Class: Workling::Discovery

Inherits:
Object
  • Object
show all
Defined in:
lib/workling/discovery.rb

Class Method Summary collapse

Class Method Details

.discover!Object

requires worklings so that they are added to routing.



10
11
12
13
14
# File 'lib/workling/discovery.rb', line 10

def self.discover!
  Workling.load_path.each do |p|
    Dir.glob(p).each { |wling| require wling }
  end
end