Class: Faussaire::Citation
- Inherits:
-
Object
- Object
- Faussaire::Citation
- Defined in:
- lib/faussaire/citation.rb
Constant Summary collapse
- DATA_PATH =
File.('./../../locale/fr.yml', __dir__)
Class Method Summary collapse
-
.philo ⇒ String
Produces a random philosopher quote.
-
.proverbe ⇒ String
Produces a random french proverb.
Class Method Details
.philo ⇒ String
Produces a random philosopher quote.
16 17 18 |
# File 'lib/faussaire/citation.rb', line 16 def philo fetch('fr.faussaire.citation.philosophy').sample end |
.proverbe ⇒ String
Produces a random french proverb.
28 29 30 |
# File 'lib/faussaire/citation.rb', line 28 def proverbe fetch('fr.faussaire.citation.proverbe').sample end |