lib/ventouse.rb in programmable-ventouse-0.1.1 vs lib/ventouse.rb in programmable-ventouse-0.1.2
- old
+ new
@@ -33,8 +33,8 @@
end
r
end
def self.ensure_dir_exists dir
- FileUtils.mkdir_p dir unless File.exist? dir and File.directory? dir
+ dir.tap { FileUtils.mkdir_p(dir) unless File.exist? dir and File.directory? dir }
end
end