plugins/adva_safemode/vendor/gems/ruby2ruby-1.2.4/lib/ruby2ruby.rb
# TODO: figure out how to do rescue and ensure ENTIRELY w/o begin
figure out how to do rescue and ensure ENTIRELY w/o begin
figure out how to do rescue and ensure ENTIRELY w / o begin
def process_begin(exp)
    code = []
    code << "begin"
    until exp.empty?
      src = process(exp.shift)
      src = indent(src) unless src =~ /(^|\n)rescue/ 
      code << src
    end
    code << "end"
    return code.join("\n")
  end
def process_begin ( exp ) code = [ ] code << "begin" until exp . empty? src = process ( exp . shift ) src = indent ( src ) unless src =~ / (^| \n )rescue / code << src end code << "end" return code . join ( "\n" ) end
TODO: figure out how to do rescue and ensure ENTIRELY w/o begin
TODO : figure out how to do rescue and ensure ENTIRELY w / o begin
# ensure no level 0 rescues
exp