Method: Leadlight::TypeMap#to_native

Defined in:
lib/leadlight/type_map.rb

#to_native(content_type, entity_body, options = {}) ⇒ Object



31
32
33
34
35
# File 'lib/leadlight/type_map.rb', line 31

def to_native(content_type, entity_body, options={})
  types.detect(handle_unknown_enctype(content_type)) {|t| 
    t.match_for_enctype?(content_type) 
  }.decode(content_type, entity_body, options)
end