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.



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

#descriptionString (readonly)

Returns the plugin description.

Returns:

  • (String)

    the plugin description



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

alias_native :description

#fileString (readonly)

Returns the file associated with the plugin.

Returns:

  • (String)

    the file associated with the plugin



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

alias_native :file, :filename

#nameString (readonly)

Returns the plugin name.

Returns:

  • (String)

    the plugin name



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

alias_native :name

#versionString (readonly)

Returns the plugin version.

Returns:

  • (String)

    the plugin version



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

alias_native :version