add ruby-end: automatic insertion of end blocks for Ruby