"Greg Benjamin" <gregbenx / yahoox.com> writes: > The only difference between the two versions is the > insertion of a CR/LF between ")" and "{" on line 7. > I thought Ruby was whitespace neutral. What is wrong > here? > > I care about this because I like to line up my braces > as shown in the second example. It's whitespace neutral where it's unambiguous. The problem here is that \n serves as a statement separator, so: > TkLabel.new(root) Here we're calling a function without a block... > { ....and here we're starting a Hash. > text "Hello, World!" > pack { padx 15; pady 15; side 'left' } > } HTH