从\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 里面