Module: Watobo::Plugin::Crawler

Defined in:
plugins/crawler/lib/constants.rb,
plugins/crawler/gui/auth_frame.rb,
plugins/crawler/gui/crawler_gui.rb,
plugins/crawler/gui/hooks_frame.rb,
plugins/crawler/gui/scope_frame.rb,
plugins/crawler/gui/status_frame.rb,
plugins/crawler/gui/settings_tabbook.rb,
plugins/crawler/gui/general_settings_frame.rb

Defined Under Namespace

Modules: Constants Classes: Gui

Class Method Summary collapse

Class Method Details

.start_urlObject



28
29
30
# File 'plugins/crawler/gui/crawler_gui.rb', line 28

def self.start_url
  @start_url ||= nil
end

.start_url=(url) ⇒ Object



32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'plugins/crawler/gui/crawler_gui.rb', line 32

def self.start_url=(url)
 # puts "Set Start-URL to #{url}"
 # puts url.class
  begin
  @start_url ||= nil
  @start_url = url       
  
  @start_url = URI.parse(url) unless url.respond_to? :host
    
  rescue => bang
    puts bang
    @start_url = nil
  end
 
  @start_url
end