1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix rdoc formatting in Mime::Type

This commit is contained in:
Mark Rushakoff 2012-04-29 22:30:13 -07:00
parent dafb4d604a
commit 5baab236ea

View file

@ -179,11 +179,11 @@ module Mime
end end
end end
# input: 'text' # For an input of <tt>'text'</tt>, returns <tt>[Mime::JSON, Mime::XML, Mime::ICS,
# returned value: [Mime::JSON, Mime::XML, Mime::ICS, Mime::HTML, Mime::CSS, Mime::CSV, Mime::JS, Mime::YAML, Mime::TEXT] # Mime::HTML, Mime::CSS, Mime::CSV, Mime::JS, Mime::YAML, Mime::TEXT]</tt>.
# #
# input: 'application' # For an input of <tt>'application'</tt>, returns <tt>[Mime::HTML, Mime::JS,
# returned value: [Mime::HTML, Mime::JS, Mime::XML, Mime::YAML, Mime::ATOM, Mime::JSON, Mime::RSS, Mime::URL_ENCODED_FORM] # Mime::XML, Mime::YAML, Mime::ATOM, Mime::JSON, Mime::RSS, Mime::URL_ENCODED_FORM]</tt>.
def parse_data_with_trailing_star(input) def parse_data_with_trailing_star(input)
Mime::SET.select { |m| m =~ input } Mime::SET.select { |m| m =~ input }
end end