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.



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

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

Instance Method Details

#refreshObject

Reload all browser plugins.



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

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

#refresh!Object

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



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

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