Ragost’s last ability will check as the end step starts to see if you gained life this turn. If you haven’t, the ability won’t trigger at all. You won’t be able to gain life during your end step in time to have the ability trigger.

Artwork
Loading artwork…
Ragost, Deft Gastronaut
Edge of Eternities · #224 · EN
Nonfoil—Foil—
Card rules
Artifacts you control are Foods in addition to their other types and have "2,
, Sacrifice this artifact: You gain 3 life."
1,
, Sacrifice a Food: Ragost deals 3 damage to each opponent.
At the beginning of each end step, if you gained life this turn, untap Ragost.
2/2
Rare · Illustrated by Zack Stella
Format legality
Alchemy Legal
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Future Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
Pioneer Legal
Standard Legal
Standard Brawl Legal
Timeless Legal
Tlr Legal
Vintage Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
PreDH Not Legal
Premodern Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
If Ragost somehow becomes an artifact, Ragost will also be a Food.
If an effect refers to a Food, it means any Food artifact, not just a Food token. For example, when you activate Ragost’s second ability, you can sacrifice any Food you control to pay its cost.
You can’t sacrifice a Food to pay multiple costs. For example, you can’t sacrifice a single Food to pay the cost of its own ability and also to pay the cost of Ragost’s second ability.
The artifacts retain any types, subtypes, supertypes, and abilities they have.