Class: Avm::Registry::SourceGenerators

Inherits:
FromGems
  • Object
show all
Defined in:
lib/avm/registry/source_generators.rb

Instance Method Summary collapse

Methods inherited from FromGems

#available, #detect, #detect_optional, #provider_module_suffix, #single_module_suffix, #to_s, #valid_registered_module?

Instance Method Details

#class_detect(klass, detect_args) ⇒ Avm::Instances::Base?

Returns:



10
11
12
13
# File 'lib/avm/registry/source_generators.rb', line 10

def class_detect(klass, detect_args)
  stereotype_name, target_path = detect_args
  klass.application_stereotype.name == stereotype_name ? klass.new(target_path) : nil
end