class SimpleForm::FormBuilder

def attempt_mapping(mapping, at)

Experimental RBS support (using type sampling data from the type_fusion project).

def attempt_mapping: (String mapping, Class at) -> untyped

This signature was generated using 1 sample from 1 application.

def attempt_mapping(mapping, at)
  return if SimpleForm.inputs_discovery == false && at == Object
  begin
    at.const_get(mapping)
  rescue NameError => e
    raise if e.message !~ /#{mapping}$/
  end
end