Posts

Showing posts from January 29, 2019

Larrea tridentata

Image
Larrea tridentata At Furnace Creek, Death Valley, California Scientific classification Kingdom: Plantae Clade : Angiosperms Clade : Eudicots Clade : Rosids Order: Zygophyllales Family: Zygophyllaceae Genus: Larrea Species: L. tridentata Binomial name Larrea tridentata (DC.) Coville [1] Larrea tridentata is known as creosote bush and greasewood as a plant, [2] as chaparral as a medicinal herb, [3] and as gobernadora in Mexico, Spanish for "governess", due to its ability to secure more water by inhibiting the growth of nearby plants. In Sonora, it is more commonly called hediondilla . [4] It is a flowering plant in the family Zygophyllaceae. The specific name tridentata refers to its three-toothed leaves. Contents 1 Distribution 2 Description 3 Oldest plants 3.1 King Clone 4 Habitat 5 Desert adaptation 6 Uses 6.1 Native American medicinals 6.2 Herbal

Checking for nil string before concatenating

Image
16 3 This question is similar to a LOT of questions, but in no such way is it anything of a duplicate. This question is about string concatenation and writing better code less than it is for checking nil/zero. Currently I have: file.puts "cn: " + (var1.nil? ? "UNKNOWN" : var1) Which works fine, but doesn't look good. What is a better way to write this in ruby so that I am checking for nil and not concatenating it ruby code-formatting share | improve this question edited Jan 14 '15 at 2:44 JakeGould 20.6k 8 46 74