Class: Browser::Navigator::Plugin

Inherits:
Native::Array
  • Object
show all
Defined in:
opal/browser/navigator.rb

Overview

Representation of a navigator plugin.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(plugin) ⇒ Plugin

Returns a new instance of Plugin.


42
43
44
45
46
# File 'opal/browser/navigator.rb', line 42

def initialize(plugin)
  super plugin do |m|
    MimeType.new(m)
  end
end

Instance Attribute Details

#descriptionString (readonly)

Returns the plugin description.

Returns:

  • (String)

    the plugin description


50
# File 'opal/browser/navigator.rb', line 50

alias_native :description

#fileString (readonly)

Returns the file associated with the plugin.

Returns:

  • (String)

    the file associated with the plugin


54
# File 'opal/browser/navigator.rb', line 54

alias_native :file, :filename

#nameString (readonly)

Returns the plugin name.

Returns:

  • (String)

    the plugin name


58
# File 'opal/browser/navigator.rb', line 58

alias_native :name

#versionString (readonly)

Returns the plugin version.

Returns:

  • (String)

    the plugin version


62
# File 'opal/browser/navigator.rb', line 62

alias_native :version