Depending on how long it's been expired Ryanair may still accept it as a form of identity. I've known of people travelling to Spain on a passport that is 2 months out of date. (I used to work on check in).
If I was you I'd go to the airport and speak to a check in agent. They'll be able to tell you.
Good luck.