lib/eymiha/url/url_opener.rb in eymiha_url-1.0.1 vs lib/eymiha/url/url_opener.rb in eymiha_url-1.0.2
- old
+ new
@@ -109,11 +109,11 @@
end
private
def open_apple url
- system "#{url_viewer||"open"} #{url}"
+ system "#{@url_viewer||"open"} #{url}"
end
def windows_browser
@@windows_browser ||=
Win32::Registry::HKEY_CLASSES_ROOT.
@@ -122,10 +122,10 @@
return reg_value
}
end
def open_pc url
- system "#{url_viewer||windows_browser} #{url}"
+ system "#{@url_viewer||windows_browser} #{url}"
end
def open_other *args
if @url_viewer
system "#{@url_viewer} #{args.join(' ')}"