grains in ruby