Class: Faussaire::Gardinerie
- Inherits:
-
Object
- Object
- Faussaire::Gardinerie
- Defined in:
- lib/faussaire/gardinerie.rb
Constant Summary collapse
- DATA_PATH =
File.('./../../locale/fr.yml', __dir__)
Class Method Summary collapse
-
.bang_bang_plant ⇒ String
Produces a random name of a carnivorous plant.
-
.fruit ⇒ String
Produces a random fruit name and its ideal consumption month in France.
-
.rival_plant ⇒ String
Produces a random name of a harmful weed (harmful for agriculture).
-
.vegetable ⇒ String
Produces a random vegetable name and its ideal consumption month in France.
-
.very_naughty_plant ⇒ String
Produces a random psychotropic plant name.
Class Method Details
.bang_bang_plant ⇒ String
Produces a random name of a carnivorous plant.
52 53 54 |
# File 'lib/faussaire/gardinerie.rb', line 52 def bang_bang_plant fetch('fr.faussaire.gardinerie.bang_bang_plant').sample end |
.fruit ⇒ String
Produces a random fruit name and its ideal consumption month in France.
28 29 30 |
# File 'lib/faussaire/gardinerie.rb', line 28 def fruit fetch('fr.faussaire.gardinerie.verger').sample end |
.rival_plant ⇒ String
Produces a random name of a harmful weed (harmful for agriculture).
40 41 42 |
# File 'lib/faussaire/gardinerie.rb', line 40 def rival_plant fetch('fr.faussaire.gardinerie.rival_plant').sample end |
.vegetable ⇒ String
Produces a random vegetable name and its ideal consumption month in France.
16 17 18 |
# File 'lib/faussaire/gardinerie.rb', line 16 def vegetable fetch('fr.faussaire.gardinerie.potager').sample end |
.very_naughty_plant ⇒ String
Produces a random psychotropic plant name.
64 65 66 |
# File 'lib/faussaire/gardinerie.rb', line 64 def very_naughty_plant fetch('fr.faussaire.gardinerie.very_naughty_plant').sample end |