lib/mechanize/inspect.rb in mechanize-0.5.4 vs lib/mechanize/inspect.rb in mechanize-0.6.0

- old
+ new

@@ -1,7 +1,5 @@ -require 'pp' - module WWW # :stopdoc: class Mechanize def pretty_print(q) q.object_group(self) { @@ -9,11 +7,10 @@ q.pp cookie_jar q.breakable q.pp current_page } end - alias :inspect :pretty_print_inspect class Page def pretty_print(q) parse_html q.object_group(self) { @@ -41,21 +38,19 @@ q.group(1, '{forms', '}') { @forms.each { |form| q.breakable; q.pp form } } } end - alias :inspect :pretty_print_inspect end class Link def pretty_print(q) q.object_group(self) { q.breakable; q.pp text q.breakable; q.pp href } end - alias :inspect :pretty_print_inspect end class Form def pretty_print(q) q.object_group(self) { @@ -80,10 +75,9 @@ q.breakable; q.group(1, '{buttons', '}') { @buttons.each { |b| q.breakable; q.pp b } } } end - alias :inspect :pretty_print_inspect end class RadioButton def pretty_print_instance_variables [:@checked, :@name, :@value]