def packet(code)
      @global_variable_name = nil
      partialruby_packet = partialruby_context.packet(code)

      @all_packets ||= []
      newpacket = EvalHook::Packet.new(partialruby_packet, @global_variable_name)
      @all_packets << newpacket
      newpacket
    end
def packet(code)
      @global_variable_name = nil
      partialruby_packet = partialruby_context.packet(code)

      @all_packets ||= []
      newpacket = EvalHook::Packet.new(partialruby_packet, @global_variable_name)
      @all_packets << newpacket
      newpacket
    end
Creates a packet of preprocessed ruby code to run it later
 , useful to execute the same code repeatedly and avoid heavy
 preprocessing of ruby code all the times.

 See EvalHook::Packet for more information

 Example:

   hook_handler = HookHandler.new

   pack = hook_handler.packet('print "hello world\n"')
   10.times do
     pack.run
   end

   pack.dispose