Class: Avm::Registry::ApplicationScms

Inherits:
FromGems
  • Object
show all
Defined in:
lib/avm/registry/application_scms.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) ⇒ Object



8
9
10
11
12
# File 'lib/avm/registry/application_scms.rb', line 8

def class_detect(klass, detect_args)
  return nil unless klass.type_name == detect_args.fetch(0).scm_type

  klass.new(*detect_args)
end