Sha256: c862047435e9ff1221f2cda8fa41c28da397aabfa19a3b4c8b761e44bd30e87a

Contents?: true

Size: 380 Bytes

Versions: 2

Compression:

Stored size: 380 Bytes

Contents

##
# 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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
em-midori-0.1.7.1 lib/midori/extension/file.rb
em-midori-0.1.7 lib/midori/extension/file.rb