Hi! * Simon Strandgaard: > At several occasions I wonder how to best indent Ruby code. > I am curious to how _you_ indent Ruby code ? > > ( node, > @input, > @parent_nodes, > @registers ) = @resume_stack.pop ( node, @input, @parent_nodes, @registers ) = @resume_stack.pop This calls for a font that makes it easy to distinguish between ordinary parentheses and curly braces. I sometimes indent the assignment but not always. Depends on how obvious the RHS is. > @resume_stack.push([ > node, > input, > @parent_nodes.map_clone, > @registers.clone > ]) I sometimes do it in the same way but I also use @resume_stack.push( [ node, input, @parent_nodes.map_clone, @registers.clone, ] ) depending on how important it is that the data is an array. Please note the colon after @registers.clone - I did add it on purpose... > def initialize( > number_of_registers, > input, > integrity_iterator=nil) usually: def initialize( number_of_registers, input, integrity_iterator=nil ) Space. The final frontier. These are the adventures of the U.S.S. Ruby that boldly indents what noone has indented before >;-> Josef 'Jupp' SCHUGT -- http://oss.erdfunkstelle.de/ruby/ - German comp.lang.ruby-FAQ http://rubyforge.org/users/jupp/ - Ruby projects at Rubyforge