lib/ronin/extensions/file.rb in ronin-support-0.1.0 vs lib/ronin/extensions/file.rb in ronin-support-0.2.0.rc1

- old
+ new

@@ -28,10 +28,12 @@ # @param [String] data # The data to write to the file. # # @return [nil] # + # @api public + # def File.write(path,data) File.open(path,'w') { |file| file.write(data) } end # @@ -40,9 +42,11 @@ # @param [String] path # Unescaped path. # # @return [String] # The escaped path. + # + # @api public # def File.escape_path(path) path = path.to_s # remove any \0 characters first