Class: Bind::Actions::RefreshBrowsers
- Inherits:
-
Object
- Object
- Bind::Actions::RefreshBrowsers
- Defined in:
- lib/bind/actions/refresh_browsers.rb
Instance Attribute Summary collapse
-
#browsers ⇒ Object
Returns the value of attribute browsers.
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
- #call(file) ⇒ Object
-
#initialize(uri, *browsers) ⇒ RefreshBrowsers
constructor
A new instance of RefreshBrowsers.
Constructor Details
#initialize(uri, *browsers) ⇒ RefreshBrowsers
Returns a new instance of RefreshBrowsers.
8 9 10 |
# File 'lib/bind/actions/refresh_browsers.rb', line 8 def initialize uri, *browsers @uri, @browsers = uri, browsers end |
Instance Attribute Details
#browsers ⇒ Object
Returns the value of attribute browsers.
6 7 8 |
# File 'lib/bind/actions/refresh_browsers.rb', line 6 def browsers @browsers end |
#uri ⇒ Object
Returns the value of attribute uri.
6 7 8 |
# File 'lib/bind/actions/refresh_browsers.rb', line 6 def uri @uri end |
Instance Method Details
#call(file) ⇒ Object
12 13 14 |
# File 'lib/bind/actions/refresh_browsers.rb', line 12 def call file @browsers.each { |browser| `open -g -a #{browser} #{uri}` } end |