Class: Avm::Registry::FileFormats

Inherits:
FromGems
  • Object
show all
Defined in:
lib/avm/registry/file_formats.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::FileFormats::Base



9
10
11
# File 'lib/avm/registry/file_formats.rb', line 9

def class_detect(klass, detect_args)
  klass.new if klass.new.match?(detect_args.first)
end