Module: Cyberweb::BaseModule::ContentType
Overview
Cyberweb::BaseModule::ContentType
Instance Method Summary
collapse
-
#content_type_is_html ⇒ Object
# === content_type_is_html ========================================================================= #.
-
#content_type_is_jpeg ⇒ Object
(also: #content_type_is_jpg)
# === content_type_is_jpeg ========================================================================= #.
-
#content_type_is_json ⇒ Object
# === content_type_is_json (json tag) ========================================================================= #.
-
#content_type_is_plain_text ⇒ Object
(also: #content_type_is_plain, #content_type_is_text)
# === content_type_is_plain_text ========================================================================= #.
Instance Method Details
#content_type_is_html ⇒ Object
46
47
48
49
50
|
# File 'lib/cyberweb/base_module/content_type/content_type.rb', line 46
def content_type_is_html
{
'Content-Type' => 'text/html'
}
end
|
#content_type_is_jpeg ⇒ Object
Also known as:
content_type_is_jpg
27
28
29
30
31
|
# File 'lib/cyberweb/base_module/content_type/content_type.rb', line 27
def content_type_is_jpeg
{
'Content-Type' => 'image/jpeg'
}
end
|
#content_type_is_json ⇒ Object
#
content_type_is_json (json tag)
#
18
19
20
21
22
|
# File 'lib/cyberweb/base_module/content_type/content_type.rb', line 18
def content_type_is_json
{
'Content-Type' => 'text/json'
}
end
|
#content_type_is_plain_text ⇒ Object
Also known as:
content_type_is_plain, content_type_is_text
#
content_type_is_plain_text
#
36
37
38
39
40
|
# File 'lib/cyberweb/base_module/content_type/content_type.rb', line 36
def content_type_is_plain_text
{
'Content-Type' => 'text/plain'
}
end
|