From: Gary Church Date: 2006-09-15T13:08:15+09:00 Subject: auto indentation problem; little help please :) Hi, I'm new to ruby and irb and am hoping someone can give me a helping hand. Even this issue is small, it's annoying to me. I'm running irb 0.9.5 on OS X 10.4 within an iterm terminal. I'm doing all this on a MacBook Pro laptop. I've got auto-indenting set and readline support. The annoying indent problem is, when I type code into irb, it indents as follows: ------------------------------------------------ gary-churchs-computer:~ gary$ irb irb(main):001:0> class Song irb(main):002:1> def initialize(name, artist, duration) irb(main):003:2> @name = name irb(main):004:2> @artist = artist irb(main):005:2> @duration = duration irb(main):006:2> end irb(main):007:1> end => nil irb(main):008:0> ------------------------------------------------ with the "end"'s not lining up below the correct upper lines (here "def" and "class", respectively.) In all the examples I've seen in the book, everything (including comments) line up correctly. When I type in the code, at the end of a line, I simply hit "return" to get to the next line. Any ideas for this minor buy annoying problem? Thanks much, Gary -- Posted via http://www.ruby-forum.com/.