Repost : Trouble with Error: "..undefined method `write'.."

R

Roger Hansen

The Complete line from error inside SciTE :

test.rb:12: undefined method `write' for #<String:0x3a36d64>
(NoMethodError)

Error results from this line :

google_data.to_xml.write($stdout, 1)

--------------------------------------------------------------------
... trying to use this Scrubyt sample script on WinXP:

require 'rubygems'
require 'scrubyt'

google_data = Scrubyt::Extractor.define do
fetch 'http://www.google.com/ncr'
fill_textfield 'q', 'ruby'
submit

result 'Ruby Programming Language'
end

google_data.to_xml.write($stdout, 1)
Scrubyt::ResultDumper.print_statistics(google_data)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top