Class: UrlTree
Class Method Summary collapse
Class Method Details
.handles?(list) ⇒ Boolean
2 3 4 |
# File 'lib/xiki/url_tree.rb', line 2 def self.handles? list list.first =~ /^http:\/\// ? 1 : nil end |
.launch(options = {}) ⇒ Object
6 7 8 9 |
# File 'lib/xiki/url_tree.rb', line 6 def self.launch ={} url = [:path].join("") Keys.prefix_u ? $el.browse_url(url) : Firefox.url(url) end |