Skip to content

Instantly share code, notes, and snippets.

@eadam
eadam / mechanizeoutput
Created May 15, 2013 12:10
When trying to convert a nokogiri statement to mechanize this is what I get as the output if I do not put .to_s at the end.
This file has been truncated, but you can view the full file.
@link.icons = page.search().css("link[rel='apple-touch-icon']")
outputs the following...
--- !ruby/object:Nokogiri::XML::NodeSet document: !ruby/object:Nokogiri::HTML::Document decorators: node_cache: - !ruby/object:Nokogiri::XML::Element {} - !ruby/object:Nokogiri::XML::Element {} errors: - !ruby/exception:Nokogiri::XML::SyntaxError message: ! 'htmlParseEntityRef: expecting '';'' ' __better_errors_bindings_stack: - !ruby/object:Binding frame_type: :method frame_description: parse - !ruby/object:Binding frame_type: :method frame_description: parse - !ruby/object:Binding frame_type: :block frame_description: !binary |- YmxvY2sgaW4gcGFyc2Vy - !ruby/object:Binding frame_type: :method frame_description: parser - !ruby/object:Binding frame_type: :method frame_description: title - !ruby/object:Binding frame_type: :method frame_description: create - !ruby/object:Binding frame_type: :method frame_description: send_action - !ruby/object:Binding frame_type: :method frame_description: process_action - !ruby/object:Bin