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. Advertising

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:
    745
  2. Hypo
    Replies:
    6
    Views:
    463
  3. Walter
    Replies:
    2
    Views:
    468
    Walter
    Dec 22, 2003
  4. Lauchlan M
    Replies:
    0
    Views:
    328
    Lauchlan M
    Jun 22, 2004
  5. lecnac
    Replies:
    1
    Views:
    3,808
    Jeff Dillon
    Apr 24, 2006
Loading...

Share This Page