class SimpleForm::Inputs::MappingInput

Uses MapType to handle basic input types.

def input

def input
  @builder.send(input_method, attribute_name, input_html_options)
end

def input_method

def input_method
  method = self.class.mappings[input_type]
  raise "Could not find method for #{input_type.inspect}" unless method
  method
end