From: Tom Baker Date: 2000-12-04T17:10:05+09:00 Subject: [ruby-talk:6797] Re: using join() I'm not sure the objects have names. They certainly have types and object ids. You can get those by substituting obj.name below with any of - obj.class, obj.type, obj.to_s, obj.id or obj.inspect. "Joseph McDonald" wrote in message news:t2mci54mge564e@news.supernews.com... > Here's a prob I just tumbled into. During debugging > it would be cool to do something like: > > > def printvars (args) > args.each do |obj| > print obj.name, "=", obj, "\n"; > end > end > > urls = ["hello", "world"] > text = "world!" > printvars([urls, text]) > > but I can't seem to get the objects name. > > thanks, > -joe