Class: Avm::Registry::Applications
- Inherits:
-
Object
- Object
- Avm::Registry::Applications
- Defined in:
- lib/avm/registry/applications.rb
Instance Method Summary collapse
- #available ⇒ Array<Avm::Applications::Base>
- #detect(id) ⇒ Avm::Applications::Base
-
#initialize(*args) ⇒ Applications
constructor
A new instance of Applications.
Constructor Details
#initialize(*args) ⇒ Applications
Returns a new instance of Applications.
9 |
# File 'lib/avm/registry/applications.rb', line 9 def initialize(*args); end |
Instance Method Details
#available ⇒ Array<Avm::Applications::Base>
12 13 14 15 |
# File 'lib/avm/registry/applications.rb', line 12 def available load_config detected.values end |
#detect(id) ⇒ Avm::Applications::Base
18 19 20 21 22 |
# File 'lib/avm/registry/applications.rb', line 18 def detect(id) id = id.to_s detected[id] = ::Avm::Applications::Base.new(id) unless detected.key?(id) detected[id] end |