Module: Crafties
- Defined in:
- lib/crafties.rb,
lib/crafties/version.rb
Constant Summary collapse
- APHORISMS =
YAML.load_file(File.join(__dir__, "..", "aphorisms.yml"))
- VERSION =
"0.2.0"
Class Method Summary collapse
Class Method Details
.aphorism ⇒ Object
9 10 11 12 13 |
# File 'lib/crafties.rb', line 9 def self.aphorism APHORISMS.sample rescue Errno::ENOENT "No aphorisms found. Run `bin/fetch` first." end |