lib/wagon/page.rb in wagon-0.9.1 vs lib/wagon/page.rb in wagon-0.9.2

- old
+ new

@@ -2,11 +2,11 @@ module Wagon class Page attr_reader :connection - def initialize(connection, url) - @connection, @url = connection, url + def initialize(connection, url, parent = nil) + @connection, @url, @parent = connection, url, parent end def source @source ||= Nokogiri::HTML(get(@url)) end