module Arachnid::Resource::ContentTypes
Direct including types
Defined in:
arachnid/resource/content_types.crInstance Method Summary
-
#atom?
Determines if the resource is an Atom feed.
- #avi?
-
#content_charset
The charset included in the Content-Type.
-
#content_type
The Content-Type of the resource.
-
#content_types
The content types of the resource.
-
#css?
Determines if the resource is a CSS stylesheet.
-
#directory?
Determines if the resource is a Directory Listing.
- #flash?
- #gif?
-
#html?
Determines if the resource is HTML document.
-
#image?
Determine if the resource is an image.
-
#is_content_type?(type : String | Regex)
Determines if any of the content-types of the resource include a given type.
-
#javascript?
Determines if the resource is JavaScript.
- #jpg?
-
#json?
Determines if the resource is JSON.
- #mp4?
-
#ms_word?
Determines if the resource is a MS Word document.
-
#pdf?
Determines if the resource is a PDF document.
-
#plain_text?
Determines if the resource is plain-text.
- #png?
- #quicktime?
-
#rss?
Determines if the resource is a RSS feed.
- #svg?
-
#text?
Determines if the resource is plain-text.
- #video?
- #wmv?
-
#xml?
Determines if the resource is XML document.
-
#xsl?
Determines if the resource is XML Stylesheet (XSL).
-
#zip?
Determines if the resource is a ZIP archive.
Instance Method Detail
Determines if any of the content-types of the resource include a given type.