Class: Bind::Actions::RefreshBrowsers

Inherits:
Object
  • Object
show all
Defined in:
lib/bind/actions/refresh_browsers.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#browsersObject

Returns the value of attribute browsers.



6
7
8
# File 'lib/bind/actions/refresh_browsers.rb', line 6

def browsers
  @browsers
end

#uriObject

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