Method: Avm::Registry::WithPath#class_detect
- Defined in:
- lib/avm/registry/with_path.rb
#class_detect(klass, detect_args) ⇒ Object?
12 13 14 15 |
# File 'lib/avm/registry/with_path.rb', line 12 def class_detect(klass, detect_args) r = klass.new(*detect_args) r.valid? ? r : nil end |