Sha256: 927012969abbb5ffaa8d30aef3ae8cb9cdab3d9bea8dc6db2aa1359a9111e399

Contents?: true

Size: 432 Bytes

Versions: 206

Compression:

Stored size: 432 Bytes

Contents

# frozen_string_literal: true

require 'avm/instances/base'
require 'avm/registry/from_gems'

module Avm
  module Registry
    class Instances < ::Avm::Registry::FromGems
      # @return [Avm::Instances::Base, nil]
      def class_detect(klass, detect_args)
        r = ::Avm::Instances::Base.by_id(*detect_args)
        r.application.stereotype.instance_class == klass ? klass.by_id(*detect_args) : nil
      end
    end
  end
end

Version data entries

206 entries across 206 versions & 2 rubygems

Version Path
eac_tools-0.69.1 sub/avm/lib/avm/registry/instances.rb
avm-0.75.0 lib/avm/registry/instances.rb
eac_tools-0.69.0 sub/avm/lib/avm/registry/instances.rb
avm-0.74.0 lib/avm/registry/instances.rb
eac_tools-0.68.0 sub/avm/lib/avm/registry/instances.rb
avm-0.73.1 lib/avm/registry/instances.rb
eac_tools-0.67.1 sub/avm/lib/avm/registry/instances.rb
avm-0.73.0 lib/avm/registry/instances.rb
eac_tools-0.67.0 sub/avm/lib/avm/registry/instances.rb
avm-0.72.0 lib/avm/registry/instances.rb
eac_tools-0.66.0 sub/avm/lib/avm/registry/instances.rb
eac_tools-0.65.1 sub/avm/lib/avm/registry/instances.rb
avm-0.71.0 lib/avm/registry/instances.rb
eac_tools-0.65.0 sub/avm/lib/avm/registry/instances.rb
avm-0.70.0 lib/avm/registry/instances.rb
eac_tools-0.64.0 sub/avm/lib/avm/registry/instances.rb
avm-0.69.0 lib/avm/registry/instances.rb
eac_tools-0.63.0 sub/avm/lib/avm/registry/instances.rb
eac_tools-0.62.1 sub/avm/lib/avm/registry/instances.rb
avm-0.68.0 lib/avm/registry/instances.rb