Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Repost : Trouble with Error: "..undefined method `write'.."

Thread Tools

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

Roger Hansen
Posts: n/a

The Complete line from error inside SciTE :

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

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 ''
fill_textfield 'q', 'ruby'

result 'Ruby Programming Language'

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

Any help would be appreciated. Does anyone know of an up to
date tutorial on Scrubyt? Thanks in advance
Posted via

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
method def in method vs method def in block Kyung won Cheon Ruby 0 11-21-2008 08:48 AM
i have no trouble to send , ihave trouble reciving mail --any ideas John Penney Computer Support 4 08-29-2006 08:45 PM
method reference - repost Neil Shadrach Perl Misc 10 02-20-2004 05:13 AM
Repost: Suggest backup method for a non-technical user Gadget Computer Support 9 10-20-2003 01:01 PM
trouble with caching or caching the trouble Hypo ASP .Net 6 08-01-2003 07:11 AM