lib/mechanize/inspect.rb in mechanize-0.6.9 vs lib/mechanize/inspect.rb in mechanize-0.6.10
- old
+ new
@@ -38,17 +38,23 @@
q.group(1, '{forms', '}') {
@forms.each { |form| q.breakable; q.pp form }
}
}
end
+ if RUBY_VERSION > '1.8.2'
+ alias :inspect :pretty_inspect
+ end
end
class Link
def pretty_print(q)
q.object_group(self) {
q.breakable; q.pp text
q.breakable; q.pp href
}
+ end
+ if RUBY_VERSION > '1.8.2'
+ alias :inspect :pretty_inspect
end
end
class Form
def pretty_print(q)