From: Mike Calder Date: 2004-04-30T01:52:01+09:00 Subject: Re: Ruby under Suse Linux Now I'm really confused. I thought, "what's a standard-ish sort of core class that should work?" Looked in the first directory of the load path and found Matrix - I assume that's part of core 1.8? That fails as well. String is OK, but that's built-in. So, my problem is that no classes other than built-in classes are working. Hm. RUBY> ruby -ve 'p $LOAD_PATH' ruby 1.8.1 (2003-12-25) [i686-linux] ["/usr/local/lib/ruby/site_ruby/1.8", "/usr/local/lib/ruby/site_ruby/1.8/ i686-linux", "/usr/local/lib/ruby/site_ruby", "/usr/local/lib/ruby/1.8", "/ usr/local/lib/ruby/1.8/i686-linux", "."] RUBY> ruby -rhtml-parser -e 'class MyHTMLParser < HTMLParser; end; p MyHTMLParser' -e:1: undefined superclass `HTMLParser' (TypeError) RUBY> ruby -rhtml-parser -e 'class MyHTMLParser < Matrix; end; p MyHTMLParser' -e:1: undefined superclass `Matrix' (TypeError) RUBY> ruby -rhtml-parser -e 'class MyHTMLParser < String; end; p MyHTMLParser' MyHTMLParser On Thursday 29 April 2004 17:05, ts wrote: > >>>>> "M" == Mike Calder writes: > > M> So probably the problem has changed from me not having things in the > right M> place to not understanding how to use standard classes. > > Well, here what I've done with this version of ruby > ... > svg% ruby -rhtml-parser -e 'class MyHTMLParser < HTMLParser; end; p > MyHTMLParser' MyHTMLParser > svg% > > > > Guy Decoux -- Clear skies! Mike Calder.