Module: NetExplore
- Defined in:
- lib/net_explore.rb,
lib/net_explore/version.rb
Constant Summary collapse
- VERSION =
"0.0.1"
Class Method Summary collapse
Class Method Details
.open_url(url) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/net_explore.rb', line 5 def self.open_url url if OS.mac? system("open #{url}") elsif OS.linux? system("xdg-open #{url}") else raise 'Operating system type not supported ... please file the issue on gitub page with your OS name and I will try to include it in next release.' end end |