Class: File

Inherits:
Object
  • Object
show all
Defined in:
lib/hexdump/extensions/file.rb

Class Method Summary collapse

Class Method Details

.hexdump(path, options = {}, &block) ⇒ Object

Hexdumps the contents of a file.

Parameters:

  • path (String)

    The path of the file.

  • options (Hash) (defaults to: {})

    Additional options.

See Also:



16
17
18
19
20
# File 'lib/hexdump/extensions/file.rb', line 16

def self.hexdump(path,options={},&block)
  self.open(path,'rb') do |file|
    Hexdump.dump(file,options,&block)
  end
end