Sha256: d39aeaadd5e0e35ecd69ce92f7b6839f0d19e754ebaf56358999c61498af8187

Contents?: true

Size: 146 Bytes

Versions: 6

Compression:

Stored size: 146 Bytes

Contents

class File
  class << self
    def change name
      data = File.read(name)
      data = yield data
      File.write(name, data)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lux-fw-0.5.37 ./lib/overload/file.rb
lux-fw-0.5.36 ./lib/overload/file.rb
lux-fw-0.5.35 ./lib/overload/file.rb
lux-fw-0.5.34 ./lib/overload/file.rb
lux-fw-0.5.33 ./lib/overload/file.rb
lux-fw-0.5.32 ./lib/overload/file.rb