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

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 P.ming Language’

google_data.to_xml.write($stdout, 1)

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs