search for: main_typ

Displaying 1 result from an estimated 1 matches for "main_typ".

Did you mean: main_top
2007 Dec 20
4
Ruby on Rails mailer
...tent_type( str, sub = nil, param = nil ) if sub main, sub = str, sub else main, sub = str.split(%r</>, 2) raise ArgumentError, "sub type missing: #{str.inspect}" unless sub end if h = @header[''content-type''] h.main_type = main h.sub_type = sub h.params.clear else store ''Content-Type'', "#{main}/#{sub}" end @header[''content-type''].params.replace param if param str end As you can str contains "html" as real_...