Sha256: 9cc9cdcc25356014b9c780374c33f44bb698ba5f4317d606e46c829c02b7e7ab

Contents?: true

Size: 468 Bytes

Versions: 195

Compression:

Stored size: 468 Bytes

Contents

# frozen_string_literal: true

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

module Avm
  module Registry
    class SourceGenerators < ::Avm::Registry::FromGems
      # @return [Avm::Instances::Base, nil]
      def class_detect(klass, detect_args)
        detect_args = detect_args.dup
        stereotype_name = detect_args.shift
        klass.application_stereotype.name == stereotype_name ? klass.new(*detect_args) : nil
      end
    end
  end
end

Version data entries

195 entries across 195 versions & 2 rubygems

Version Path
eac_tools-0.62.1 sub/avm/lib/avm/registry/source_generators.rb
avm-0.68.0 lib/avm/registry/source_generators.rb
eac_tools-0.62.0 sub/avm/lib/avm/registry/source_generators.rb
eac_tools-0.61.1 sub/avm/lib/avm/registry/source_generators.rb
eac_tools-0.61.0 sub/avm/lib/avm/registry/source_generators.rb
avm-0.67.1 lib/avm/registry/source_generators.rb
eac_tools-0.60.3 sub/avm/lib/avm/registry/source_generators.rb
eac_tools-0.60.2 sub/avm/lib/avm/registry/source_generators.rb
avm-0.67.0 lib/avm/registry/source_generators.rb
eac_tools-0.60.1 sub/avm/lib/avm/registry/source_generators.rb
eac_tools-0.60.0 sub/avm/lib/avm/registry/source_generators.rb
eac_tools-0.59.0 sub/avm/lib/avm/registry/source_generators.rb
avm-0.66.1 lib/avm/registry/source_generators.rb
eac_tools-0.58.0 sub/avm/lib/avm/registry/source_generators.rb
eac_tools-0.57.0 sub/avm/lib/avm/registry/source_generators.rb
eac_tools-0.56.1 sub/avm/lib/avm/registry/source_generators.rb
avm-0.66.0 lib/avm/registry/source_generators.rb
eac_tools-0.56.0 sub/avm/lib/avm/registry/source_generators.rb
avm-0.65.0 lib/avm/registry/source_generators.rb
eac_tools-0.55.7 sub/avm/lib/avm/registry/source_generators.rb