>>>>> "P" == Phil Tomson <ptkwt / user2.teleport.com> writes:

P> Being very new to Ruby (2-3 days) and very familiar with Perl, I tend to
P> prefer { .. } for block delimiters.  From what I can tell in Ruby you can
P> use either do .. end or { .. } for blocks.

 Not really, "{ ... }" and "do ... end" are for an iterator (i.e. NODE_ITER)

 You can have a block (well a NODE_BLOCK) when you write

   if a
      p a
      p a
   end

 or

   begin
      p a
      p a
   end if defined? a

 Do you want also write ?

  {
     p a
     p a
  } if defined? a

 it seems ugly for me

  
Guy Decoux