Sha256: 8028afd09565e40fff0e6a58d890e2b38478c61fe554f55407615ed4bb38e3f5

Contents?: true

Size: 494 Bytes

Versions: 15

Compression:

Stored size: 494 Bytes

Contents

module AnswersEngine
  module Scraper
    class Parser
      def self.exec_parser_page(filename, gid, job_id=nil, save=false, vars = {})
        extname = File.extname(filename)
        case extname
        when '.rb'
          executor = RubyParserExecutor.new(filename: filename, gid: gid, job_id: job_id, vars: vars)
          executor.exec_parser(save)
        else
          puts "Unable to find a parser executor for file type \"#{extname}\""
        end
      end

    
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
answersengine-0.10.1 lib/answersengine/scraper/parser.rb
answersengine-0.10.0 lib/answersengine/scraper/parser.rb
answersengine-0.9.1 lib/answersengine/scraper/parser.rb
answersengine-0.9.0 lib/answersengine/scraper/parser.rb
answersengine-0.8.0 lib/answersengine/scraper/parser.rb
answersengine-0.7.0 lib/answersengine/scraper/parser.rb
answersengine-0.6.0 lib/answersengine/scraper/parser.rb
answersengine-0.5.0 lib/answersengine/scraper/parser.rb
answersengine-0.4.1 lib/answersengine/scraper/parser.rb
answersengine-0.4.0 lib/answersengine/scraper/parser.rb
answersengine-0.3.3 lib/answersengine/scraper/parser.rb
answersengine-0.3.2 lib/answersengine/scraper/parser.rb
answersengine-0.3.1 lib/answersengine/scraper/parser.rb
answersengine-0.3.0 lib/answersengine/scraper/parser.rb
answersengine-0.2.33 lib/answersengine/scraper/parser.rb