Class: Druzy::Protocol::Discoverer
- Inherits:
-
Object
- Object
- Druzy::Protocol::Discoverer
- Defined in:
- lib/druzy/protocol.rb
Constant Summary collapse
- @@discoverers =
[]
- @@plugin_dir =
File.dirname(__FILE__)+'/protocol/plugin/'
Class Method Summary collapse
-
.get_discoverers ⇒ Object
@@plugin_dir=“/usr/lib/ruby/vendor_ruby/druzy”+“/protocol/plugin/”.
- .inherited(klass) ⇒ Object
Class Method Details
.get_discoverers ⇒ Object
@@plugin_dir=“/usr/lib/ruby/vendor_ruby/druzy”+“/protocol/plugin/”
12 13 14 15 |
# File 'lib/druzy/protocol.rb', line 12 def self.get_discoverers Dir[File.join(@@plugin_dir, '*.rb')].each {|file| require "druzy/protocol/plugin/"+File.basename(file,"*.rb")} return @@discoverers end |
.inherited(klass) ⇒ Object
17 18 19 |
# File 'lib/druzy/protocol.rb', line 17 def self.inherited(klass) @@discoverers << klass.new end |