ruby path intermediate