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

Discussion in 'Ruby' started by Roger Hansen, Apr 30, 2009.

  1. Roger Hansen

    Roger Hansen Guest

    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)
    --------------------------------------------------------------------

    Any help would be appreciated. Does anyone know of an up to
    date tutorial on Scrubyt? Thanks in advance
    --
    Posted via http://www.ruby-forum.com/.
     
    Roger Hansen, Apr 30, 2009
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. bjh

    Mystery Repost

    bjh, Jan 13, 2004, in forum: Perl
    Replies:
    0
    Views:
    841
  2. Little Monster

    Newbie cgi problem - repost

    Little Monster, May 2, 2004, in forum: Perl
    Replies:
    3
    Views:
    734
    Little Monster
    May 6, 2004
  3. Sabre

    Postback problems - repost

    Sabre, Jul 13, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    475
    Sabre
    Jul 14, 2003
  4. Programatix
    Replies:
    1
    Views:
    434
    Kathleen Dollard
    Jul 17, 2003
  5. Hypo
    Replies:
    6
    Views:
    677
  6. Walter
    Replies:
    2
    Views:
    570
    Walter
    Dec 22, 2003
  7. Lauchlan M
    Replies:
    0
    Views:
    408
    Lauchlan M
    Jun 22, 2004
  8. lecnac
    Replies:
    1
    Views:
    3,943
    Jeff Dillon
    Apr 24, 2006
Loading...