From: matz@... (Yukihiro Matsumoto) Date: 2001-06-28T15:32:24+09:00 Subject: [ruby-talk:16990] Re: Introspection and 'where's the source'? Hi, In message "[ruby-talk:16976] Introspection and 'where's the source'?" on 01/06/28, Johann Hibschman writes: |Is there any way that you can find the source code of a ruby method |or class by introspecting it? In Python, I believe, functions carry |around information about the source file and line position at which |they were defined. Is there a similar feature in Ruby? Do __FILE__ and __LINE__ work for you? |I'm wondering, since Ruby inherits a bit from Smalltalk, and one of |the nicer features of smalltalk is the way in which you can just |browse through the source of everything while you're debugging. |(At least in Squeak, you can. I'm not all that experienced with |Smalltalk, either, but it's a neat feature.) Yes, It's neat. But I had abandoned the feature for Ruby to be more "normal" language. matz.