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

- old
+ new

@@ -20,12 +20,23 @@ require 'ronin/formatting/extensions/binary/string' class File # - # Converts the hexdump at the given path back into raw-data. + # Converts a hexdump file to it's original binary data. # + # @param [Pathname, String] path + # The path of the hexdump file. + # + # @param [Hash] options + # Hexdump options. + # + # @return [String] + # The original binary data. + # # @see String#unhexdump. + # + # @api public # def File.unhexdump(path,options={}) File.read(path).unhexdump(options) end