lib/ronin/ui/hexdump/extensions/file.rb in ronin-0.2.4 vs lib/ronin/ui/hexdump/extensions/file.rb in ronin-0.3.0
- old
+ new
@@ -1,9 +1,7 @@
#
-#--
-# Ronin - A Ruby platform designed for information security and data
-# exploration tasks.
+# Ronin - A Ruby platform for exploit development and security research.
#
# Copyright (c) 2006-2009 Hal Brodigan (postmodern.mod3 at gmail.com)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -16,19 +14,23 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-#++
#
require 'ronin/ui/hexdump/hexdump'
class File
#
- # Hexdumps the contents of the File at the specified _path_
- # to the given _output_ stream.
+ # Hexdumps the contents of the File.
+ #
+ # @param [String] path
+ # The path to the File to hexdump.
+ #
+ # @param [IO] output
+ # The output stream to print the hexdump to.
#
def self.hexdump(path,output=STDOUT)
self.open(path) do |file|
Ronin::UI::Hexdump.dump(file,output)
end