Sha256: bad9c4bd70eeb2f11b9e7da1bb91ec240d0a96ecf1d5bbf7693aeb6f108f28a1
Contents?: true
Size: 242 Bytes
Versions: 4
Compression:
Stored size: 242 Bytes
Contents
class File class << self def write(name, data) File.open(name, 'w') { |f| f.write(data) } data end def change(name) data = File.read(name) data = yield data File.write(name, data) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
lux-fw-0.2.3 | ./lib/overload/file.rb |
lux-fw-0.2.1 | ./lib/overload/file.rb |
lux-fw-0.1.35 | ./lib/overload/file.rb |
lux-fw-0.1.17 | ./lib/overload/file.rb |