Class: Browser::Navigator::MimeType
- Includes:
- Native
- Defined in:
- opal/browser/navigator.rb
Overview
Representation of a MIME type.
Instance Attribute Summary collapse
-
#description ⇒ String
readonly
The description for the MIME type.
-
#extensions ⇒ Array<String>
readonly
The extensions for this MIME type.
-
#plugin ⇒ Plugin
readonly
The plugin for the MIME type.
-
#type ⇒ String
readonly
The MIME type.
Instance Attribute Details
#description ⇒ String (readonly)
Returns the description for the MIME type.
25 |
# File 'opal/browser/navigator.rb', line 25 alias_native :description |
#extensions ⇒ Array<String> (readonly)
Returns the extensions for this MIME type.
29 30 31 |
# File 'opal/browser/navigator.rb', line 29 def extensions `#@native.suffixes`.split(/\s*/) end |
#plugin ⇒ Plugin (readonly)
Returns the plugin for the MIME type.
19 20 21 |
# File 'opal/browser/navigator.rb', line 19 def plugin Plugin.new(`#@native.enabledPlugin`) end |
#type ⇒ String (readonly)
Returns the MIME type.
35 |
# File 'opal/browser/navigator.rb', line 35 alias_native :type |