lib/proxy_fetcher/document.rb in proxy_fetcher-0.6.1 vs lib/proxy_fetcher/document.rb in proxy_fetcher-0.6.2
- old
+ new
@@ -1,5 +1,8 @@
module ProxyFetcher
+ # HTML document abstraction class. Used to work with different HTML parser adapters
+ # such as Nokogiri, Oga or a custom one. Stores <i>backend</i< that will handle all
+ # the DOM manipulation logic.
class Document
class << self
def parse(data)
new(ProxyFetcher.config.adapter.parse(data))
end