Class: Moodswings::Storage
- Inherits:
-
Object
- Object
- Moodswings::Storage
- Defined in:
- lib/moodswings/storage.rb
Constant Summary collapse
- DB_PATH =
"~/.moodswings"
Instance Method Summary collapse
Instance Method Details
#list ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/moodswings/storage.rb', line 7 def list puts "" moods.each do |mood| puts mood.name end puts "" end |
#mood_paths ⇒ Object
23 24 25 |
# File 'lib/moodswings/storage.rb', line 23 def mood_paths Dir[File.(DB_PATH + "/*.mood")] end |