Supreme Court Justice Ruth Bader Ginsburg said Thursday that the court will not duck the issue of gay marriage.

"I think the court will not do what they did in the old days when they continually ducked the issue of miscegenation," Ginsburg said in an interview with The Associated Press. "If a case is properly before the court, they will take it."

She was referring to bans on interracial marriage, which were not struck down by the Supreme Court until 1967. 

Gay marriage appears to be headed back to the Supreme Court following a series of court decisions that have overturned gay marriage bans across the country.

The string of decisions was spurred by the Supreme Court's ruling last year that struck down part of the federal Defense of Marriage Act, a ruling that Ginsburg joined. 

The 81-year-old justice has faced speculation about whether she will retire in time to ensure President Obama can appoint her replacement. 

"My answer is, I will do this job as long as I can do it full steam," she told Yahoo News in a separate interview.

She also took on critics who say she should step down in the AP interview: "So who do you think could be nominated now that would get through the Senate that you would rather see on the court than me?"

Ginsburg also weighed in on last month's controversial Hobby Lobby decision, in which the court carved out an exception to ObamaCare's contraception mandate.  

She wrote a fiery dissent in that case. 

"I have no doubt that if the court had been composed of nine women the result would have been different in Hobby Lobby," she said in the interview Thursday.