3 # Lookup the format class from a mime type reference symbol. Example:
5 # ActiveResource::Formats[:xml] # => ActiveResource::Formats::XmlFormat
6 # ActiveResource::Formats[:json] # => ActiveResource::Formats::JsonFormat
7 def self.[](mime_type_reference
)
8 ActiveResource
::Formats.const_get(mime_type_reference
.to_s
.camelize
+ "Format")
13 require 'active_resource/formats/xml_format'
14 require 'active_resource/formats/json_format'