lib/rio/ops/either.rb in rio-0.3.4 vs lib/rio/ops/either.rb in rio-0.3.6
- old
+ new
@@ -51,11 +51,19 @@
end
end
end
module Ops
module FileOrDir
+ module ExistOrNot
+ end
+ module NonExisting
+ include ExistOrNot
+ end
+
module Existing
+ include ExistOrNot
+
def chmod(mod) rtn_self { Impl::U.chmod(mod,fspath) } end
def chown(owner,group) rtn_self { Impl::U.chown(owner,group,fspath) } end
def must_exist() self end
def rename(*args,&block)
@@ -105,27 +113,19 @@
else
nil
end
end
- require 'Pathname'
+ require 'pathname'
def realpath
new_rio(Impl::U.realpath(fspath))
end
def mountpoint?
Impl::U.mountpoint?(fspath)
end
end
- module ExistOrNot
- end
- module Existing
- include ExistOrNot
- end
- module NonExisting
- include ExistOrNot
- end
end
end
end