./lib/overload/file.rb in lux-fw-0.2.3 vs ./lib/overload/file.rb in lux-fw-0.5.32
- old
+ new
@@ -1,12 +1,7 @@
class File
class << self
- def write(name, data)
- File.open(name, 'w') { |f| f.write(data) }
- data
- end
-
- def change(name)
+ def change name
data = File.read(name)
data = yield data
File.write(name, data)
end
end
\ No newline at end of file