What forms of energy does the bent ruler have?
If it is elastic, it has potential energy.Otherwise, it has none.
It depends if it is plasticity. If it is, then it is potential energy.