```ruby
require 'hexdump/hexdump'

class File

  #
  # Hexdumps the contents of a file.
  #
  # @param [String] path
  #   The path of the file.
  #
  # @param [Hash] options
  #   Additional options.
  #
  # @see Hexdump.dump
  #
  def self.hexdump(path,**kwargs,&block)
    self.open(path,'rb') do |file|
      Hexdump.dump(file,**kwargs,&block)
    end
  end

end
```

Use the IO core_ext in the File core_ext.
user
```ruby
require 'hexdump/core_ext/io'

class File

  #
  # Hexdumps the contents of a file.
  #
  # @param [String] path
  #   The path of the file.
  #
  # @param [Hash] options
  #   Additional options.
  #
  # @see Hexdump.dump
  #
  def self.hexdump(path,**kwargs,&block)
    self.open(path,'rb') do |file|
      file.hexdump(**kwargs,&block)
    end
  end

end
```
assistant