Class: Workling::Discovery
- Inherits:
-
Object
- Object
- Workling::Discovery
- Defined in:
- lib/workling/discovery.rb
Constant Summary collapse
- @@discovered =
[]
Class Method Summary collapse
-
.discover! ⇒ Object
requires worklings so that they are added to routing.
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 |