All snakes are opportunistic eaters.
Every chance they get, they will eat.
They have to, in case they must endure a spell when no food is available.
That is just not true! They have a very slow digestive system, while some made feed at a faster rate Rattlers eat no more than a few times a year.