Add function to send whole ruby buffer to inf process