Class: Workling::Discovery

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

Constant Summary collapse

@@discovered =
[]

Class Method Summary collapse

Class Method Details

.discover!Object

requires worklings so that they are added to routing.



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

def self.discover!
  Dir.glob(Workling.load_path.map { |p| "#{ p }/**/*.rb" }).each { |wling| require wling }
end