Class: Browser::Navigator::Plugins

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

Overview

Representation for the array of plugins.

Instance Method Summary collapse

Constructor Details

#initialize(plugins) ⇒ Plugins

Returns a new instance of Plugins.


69
70
71
72
73
# File 'opal/browser/navigator.rb', line 69

def initialize(plugins)
  super plugins do |p|
    Plugin.new(p)
  end
end

Instance Method Details

#refreshObject

Reload all browser plugins.


76
77
78
# File 'opal/browser/navigator.rb', line 76

def refresh
  `#@native.refresh(false)`
end

#refresh!Object

Reload all browser plugins reloading pages that contain <embed>s.


81
82
83
# File 'opal/browser/navigator.rb', line 81

def refresh!
  `#@native.refresh(true)`
end