Since lot of things are happening during (and before) the fetching of a document, I decided to move out fetching related functionality to a separate class - so if you are looking for anything which is loading a document (even by submitting a form or clicking a link) and related things like setting a proxy etc. you should find it here.
At any given point, the current document can be queried with this method; Typically used when the navigation is over and the result document is passed to the wrapper
# File lib/scrubyt/core/navigation/fetch_action.rb, line 21 def self.get_current_doc_url @@current_doc_url end
# File lib/scrubyt/core/navigation/fetch_action.rb, line 33 def get_host_name @@host_name end
# File lib/scrubyt/core/navigation/fetch_action.rb, line 37 def restore_host_name return if @@current_doc_protocol == 'file' @@host_name = @@original_host_name end
# File lib/scrubyt/core/navigation/fetch_action.rb, line 46 def restore_page @@hpricot_doc = @@history.pop end
Generated with the Darkfish Rdoc Generator 2.