Class: Avm::Registry::FileFormats
Instance Method Summary
collapse
Methods inherited from FromGems
#available, #detect, #provider_module_suffix, #single_module_suffix, #to_s, #valid_registered_module?
Instance Method Details
10
11
12
|
# File 'lib/avm/registry/file_formats.rb', line 10
def class_detect(klass, detect_args)
klass.new if klass.new.match?(detect_args.first)
end
|
15
16
17
|
# File 'lib/avm/registry/file_formats.rb', line 15
def detect_optional(*registered_initialize_args)
super || ::Avm::FileFormats::Unknown.new
end
|