lib/midori/extension/file.rb in em-midori-0.1.6.1 vs lib/midori/extension/file.rb in em-midori-0.1.7

- old
+ new

@@ -1,10 +1,16 @@ +## +# Midori Extension of File reading and writing class Midori::File class << self + # Same APIs as File.read + # @param [ Array ] args args of File.read def read(*args) await(defer{File.read(*args)}) end + # Same APIs as File.write + # @param [ Array ] args args of File.write def write(*args) await(defer{File.write(*args)}) end end end