#!/usr/local/bin/ruby require 'rio' rio('/a/b/c').path rio('b/c').path rio('C:/b/c').path rio('//ahost/a/b').path rio('file://ahost/a/b').path rio('file:///a/b').path rio('file://localhost/a/b').path rio('http://ahost/index.html').path rio('stdin:').path