Using rails we rely on I18n.t
and maybe more things that are configured in YAML files should be used with a similar method.
For example, I have a file with icecream prices
icecreams:
water:
strawberry: 5
watermelon: 5
peach: 6
cream:
chocolate: 7
vanilla: 4
lucuma: 8
How could I get the price of any ice cream like the way we use I18n?
For example: icecreams('cream.lucuma')