Method: HTTP::ContentType#initialize
- Defined in:
- lib/http/content_type.rb
#initialize(mime_type = nil, charset = nil) ⇒ ContentType
Returns a new instance of ContentType.
29 30 31 32 |
# File 'lib/http/content_type.rb', line 29 def initialize(mime_type = nil, charset = nil) @mime_type = mime_type @charset = charset end |