Class: XdgWrap
- Inherits:
-
Object
- Object
- XdgWrap
- Defined in:
- lib/llwp.rb
Class Method Summary collapse
Class Method Details
.run(port = nil, folder = nil) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/llwp.rb', line 3 def self.run(port=nil,folder=nil) port ||= 80 folder ||= '' url = "http://localhost:#{port}/#{folder}" puts "opening #{url}" `xdg-open #{url}` end |