At several occasions I wonder how to best indent Ruby code.
I am curious to how _you_ indent Ruby code ?

For instance converting Array into variables, with
many/long variables it can get unreadable.

( node, 
  @input, 
  @parent_nodes, 
  @registers    ) = @resume_stack.pop   


The opposite push operation could be indented like this:

@resume_stack.push([
  node, 
  input, 
  @parent_nodes.map_clone,
  @registers.clone
]) 


Classes which has to be initialized with a bunch of
arguments: 

def initialize(
  number_of_registers, 
  input, 
  integrity_iterator=nil)


--
Simon Strandgaard