Class: Browser::Navigator::Plugins
- Defined in:
- opal/browser/navigator.rb
Overview
Representation for the array of plugins.
Instance Method Summary collapse
-
#initialize(plugins) ⇒ Plugins
constructor
A new instance of Plugins.
-
#refresh ⇒ Object
Reload all browser plugins.
-
#refresh! ⇒ Object
Reload all browser plugins reloading pages that contain
<embed>s.
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
#refresh ⇒ Object
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 |