lib/rio/rl/base.rb in rio-0.5.1 vs lib/rio/rl/base.rb in rio-0.6.0
- old
+ new
@@ -1,8 +1,8 @@
#--
# ===========================================================================
-# Copyright (c) 2005-2012 Christopher Kleckner
+# Copyright (c) 2005-2017 Christopher Kleckner
# All rights reserved
#
# This file is part of the Rio library for ruby.
#
# Rio is free software; you can redistribute it and/or modify
@@ -66,13 +66,10 @@
parms = splitrl(a.shift) || []
new(*(parms+a))
end
def rl() SCHC+self.url end
-
-# def riorl() SCHC+self.url end
-
def to_s() self.fspath || '' end
def ==(other) self.to_s == other.to_s end
def ===(other) self == other end
def =~(other) other =~ self.to_str end
def length() self.to_s.length end
@@ -82,21 +79,11 @@
def to_rl() self.rl end
def url() self.scheme+SUBSEPAR+self.opaque end
def close()
- #p "Closing RL #{self}"
nil
end
-
- #def fs2url(pth) RL.fs2url(pth) end
- #def url2fs(pth) RL.url2fs(pth) end
- #def escape(pth,esc=RL::ESCAPE)
- # RL.escape(pth,esc)
- #end
- #def unescape(pth)
- # RL.unescape(pth)
- #end
def callstr(func,*args)
self.class.to_s+'['+self.to_s+']'+'.'+func.to_s+'('+args.join(',')+')'
end
end