fork(1) download
  1. f=->s{s[-3]>?!&&f[" "+s.gsub(/^( *\/).|.(.)$|./){$1||$2||($&>?/??/:?\\)}]
  2. puts s}
  3.  
  4. f[STDIN.read.chomp]
Success #stdin #stdout 0.02s 9664KB
stdin
//\/\/\\
stdout
   /\
  //\\
 //\/\\
//\/\/\\