lib/refinements/pathnames.rb in refinements-7.18.0 vs lib/refinements/pathnames.rb in refinements-8.0.0
- old
+ new
@@ -69,14 +69,10 @@
def make_path
mkpath
self
end
- def mkdir
- exist? ? self : super and self
- end
-
def name
basename extname
end
def relative_parent root_dir
@@ -100,10 +96,10 @@
def rewrite
read.then { |content| write yield(content) if block_given? }
end
- def touch at: Time.now
+ def touch at = Time.now
exist? ? utime(at, at) : write("")
self
end
def write content, offset: nil, **options