Method: WebCrawler::View::Runner#render

Defined in:
lib/web_crawler/view/runner.rb

#renderObject



24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/web_crawler/view/runner.rb', line 24

def render
  unless File.exists? @options['run']
    @options['run'] = File.expand_path @options['run'], FileUtils.pwd
  end

  @work_space = WorkSpace.new
  @work_space.responses = input.freeze
  @work_space.results   = eval(File.open(@options['run'], 'r').read, @work_space.instance_eval("binding"), @options['run'])

  load_console! if @options['console']

  WebCrawler::View.factory(@options['original_format'], @work_space.results, @options).render
end