lib/zeamays/fridge.rb in zeamays-0.0.6 vs lib/zeamays/fridge.rb in zeamays-0.0.7
- old
+ new
@@ -1,9 +1,15 @@
module Zeamays
class Fridge
- def self.stick(cob, path)
- File.open(path, "wb") { |file|
- f.write cob.freeze
+ def self.stick(path, freezed)
+ File.open(path, "wb") { |f|
+ f.write(freezed)
}
+ end
+
+ def self.take(path)
+ #File.open(path, "rb") { |f|
+ #}
+ readed = File.binread(path)
end
end
end