Class: Browser::Navigator::Plugin
- Defined in:
- opal/browser/navigator.rb
Overview
Representation of a navigator plugin.
Instance Attribute Summary collapse
-
#description ⇒ String
readonly
The plugin description.
-
#file ⇒ String
readonly
The file associated with the plugin.
-
#name ⇒ String
readonly
The plugin name.
-
#version ⇒ String
readonly
The plugin version.
Instance Method Summary collapse
-
#initialize(plugin) ⇒ Plugin
constructor
A new instance of Plugin.
Constructor Details
#initialize(plugin) ⇒ Plugin
Returns a new instance of Plugin.
43 44 45 46 47 |
# File 'opal/browser/navigator.rb', line 43 def initialize(plugin) super plugin do |m| MimeType.new(m) end end |
Instance Attribute Details
#description ⇒ String (readonly)
Returns the plugin description.
51 |
# File 'opal/browser/navigator.rb', line 51 alias_native :description |
#file ⇒ String (readonly)
Returns the file associated with the plugin.
55 |
# File 'opal/browser/navigator.rb', line 55 alias_native :file, :filename |
#name ⇒ String (readonly)
Returns the plugin name.
59 |
# File 'opal/browser/navigator.rb', line 59 alias_native :name |
#version ⇒ String (readonly)
Returns the plugin version.
63 |
# File 'opal/browser/navigator.rb', line 63 alias_native :version |