Ruby I. Herb, 49, a former resident of the Washington area who worked for the Research Analysis Corporation in McLean, died Oct. 30 at a hospital in Harrisburg, Pa., of injuries received in a car accident earlier that day.

A spokesman for the Pennsylvania State Police said the accident occurred in Matamoras when the car Miss Herb was driving was struck by another car which crossed the center line into her lane.

Miss Herb moved to the Washington area in 1950 and worked for about 20 years as a document librarian for the Operations Research Office of Johns Hopkins University, which later became the Research Analysis Corporation. She also worked in their field offices located in Japan, Thailand and Germany.

Miss Herb, who was born in Hegins, Pa., lived in McLean when she left the Washington area in the early 1970s. At the time of her death, she lived in Berrysburg, Pa., and owned the Cricket Bookstores in Harrisburg and Lancaster, Pa.

Survivors include her father, Frank R., of Lykens, Pa.; two brothers, Franklin R., of Lykens, and Jimmie R., of Brookline, N.H.; and four sisters, Carolyn B. Herb of Berrysburg, Joyce E. Koplin of Houston, Nancy L. Thomas of Camp Hill, Pa., and Jeanne F. Lenker of Harrisburg.