lib/ronin/ui/hexdump/extensions/file.rb in ronin-0.2.2 vs lib/ronin/ui/hexdump/extensions/file.rb in ronin-0.2.3

- old
+ new

@@ -28,9 +28,11 @@ # # Hexdumps the contents of the File at the specified _path_ # to the given _output_ stream. # def self.hexdump(path,output=STDOUT) - Ronin::UI::Hexdump.dump(self.open(path),output) + self.open(path) do |file| + Ronin::UI::Hexdump.dump(file,output) + end end end