Gem Hpricot.scan (input, opts) 以后再执行到哪去了

tablecell · January 02, 2016 · Last by luikore replied at February 12, 2016 · 1770 hits

从\gems\hpricot-0.8.6\lib\hpricot\parse.rb line 3

def Hpricot(input = nil, opts = {}, &blk)
  Hpricot.make(input, opts, &blk)
end

\gems\hpricot-0.8.6\lib\hpricot\parse.rb line 27

def Hpricot.make(input = nil, opts = {}, &blk)
  if blk
    doc = Hpricot.build(&blk)
    doc.instance_variable_set("@options", opts)
    doc
  else
    Hpricot.scan(input, opts)
  end
end

到 Hpricot.scan(input, opts) 以后,然后执行了哪去了?找不到 scan 方法的实现 全封装在 hpricot_scan.so 里面

You need to Sign in before reply, if you don't have an account, please Sign up first.