From: Morton Goldberg Date: 2006-12-28T01:34:55+09:00 Subject: Re: newbie with a weird technical problem (@ least I think it's weird) On Dec 27, 2006, at 8:37 AM, will wrote: > ... I'm using TextMate/Terminal to > code and run modified versions of the book's examples. Since you're using TextMate (as I do), I recommend running Ruby code from within TextMate. No need to bother with Terminal. 1. Use Bundles>Ruby>Run to run your script. Output goes to a RubyMate window which will pop up. 2. Try the following: class Book def initialize(title, author, pages) @title = title @author = author @pages = pages end end book = Book.new("Ruby Tutorial", "Dave", 831) book.inspect # => Note the '# =>' added to the last line. Choose Ruby>Evaluate and Update '# =>' Markers from the Bundles menu. The last line will change to book.inspect # => "#" There are shortcuts for these bundle commands, and there are several other aids to evaluating Ruby code built-in to the TextMate Ruby bundle. I think you will find TextMate makes it easy to explore Ruby without constantly switching back and forth to Terminal. Regards, Morton