From: Christian Neukirchen Date: 2007-01-11T00:02:21+09:00 Subject: Re: [ANN] Elements of Ruby Style "Justin Bailey" writes: > def some_method(arg1, arg) > raise "Arg1 cannot be nil" if arg1.nil? > raise "Arg1 must be a number" unless arg1.is_a?(Numeric) > ... This seems to be a style thing I only see in my own code, but which I consider very helpful when reading code: put two spaces before statement modifiers. I'd have written: def some_method(arg1, arg) raise "Arg1 cannot be nil" if arg1.nil? raise "Arg1 must be a number" unless arg1.is_a?(Numeric) ... (In this case, I'd probably line them up, too...) Since this is the only place I use two spaces in source code, it slightly stands out and visually seperates the statement from the modifier, which is especially important if you don't use syntax highlighting. Any comments? > Justin -- Christian Neukirchen http://chneukirchen.org