Sha256: 08a1ac6bb75e1bfb3e2fbeaaee28f305c7ad15c5677153450f4398c02e515e3b

Contents?: true

Size: 629 Bytes

Versions: 77

Compression:

Stored size: 629 Bytes

Contents

# frozen_string_literal: true

require 'avm/applications/base'
require 'eac_ruby_utils/core_ext'

module Avm
  module Registry
    class Applications
      def initialize(*args); end

      # @return [Array<Avm::Applications::Base>]
      def available
        detected.values
      end

      # @return [Avm::Applications::Base]
      def detect(id)
        id = id.to_s
        detected[id] = ::Avm::Applications::Base.new(id) unless detected.key?(id)
        detected[id]
      end

      private

      # @return [Hash<String, Avm::Applications::Base>]
      def detected
        @detected ||= {}
      end
    end
  end
end

Version data entries

77 entries across 77 versions & 2 rubygems

Version Path
eac_tools-0.56.0 sub/avm/lib/avm/registry/applications.rb
avm-0.65.0 lib/avm/registry/applications.rb
eac_tools-0.55.7 sub/avm/lib/avm/registry/applications.rb
avm-0.64.2 lib/avm/registry/applications.rb
eac_tools-0.55.6 sub/avm/lib/avm/registry/applications.rb
avm-0.64.1 lib/avm/registry/applications.rb
eac_tools-0.55.5 sub/avm/lib/avm/registry/applications.rb
avm-0.64.0 lib/avm/registry/applications.rb
eac_tools-0.55.4 sub/avm/lib/avm/registry/applications.rb
avm-0.63.0 lib/avm/registry/applications.rb
eac_tools-0.55.3 sub/avm/lib/avm/registry/applications.rb
eac_tools-0.55.2 sub/avm/lib/avm/registry/applications.rb
eac_tools-0.55.1 sub/avm/lib/avm/registry/applications.rb
avm-0.62.0 lib/avm/registry/applications.rb
eac_tools-0.55.0 sub/avm/lib/avm/registry/applications.rb
avm-0.61.0 lib/avm/registry/applications.rb
eac_tools-0.54.0 sub/avm/lib/avm/registry/applications.rb
eac_tools-0.53.0 sub/avm/lib/avm/registry/applications.rb
eac_tools-0.52.0 sub/avm/lib/avm/registry/applications.rb
avm-0.60.0 lib/avm/registry/applications.rb