Class: UrlTree

Inherits:
Object show all
Defined in:
lib/xiki/url_tree.rb

Class Method Summary collapse

Class Method Details

.handles?(list) ⇒ Boolean

Returns:

  • (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 options={}
  url = options[:path].join("")
  Keys.prefix_u ? $el.browse_url(url) : Firefox.url(url)
end