class DailyLog::Pathname
Constants
- DEFAULT_DIRNAME
The default name for the dir where entries are stored.
- FORMAT
The default format for entries
Attributes
dirname[W]
Set the dirname where entries are stored
date[R]
The Date we're caluclating the Pathname
for
Public Class Methods
dirname()
click to toggle source
The dirname where entries are stored
Returns String
# File lib/daily_log/pathname.rb, line 37 def dirname @dirname || DEFAULT_DIRNAME end
Public Instance Methods
dirname()
click to toggle source
The name of the directory where the Entry
will live
Returns String
# File lib/daily_log/pathname.rb, line 61 def dirname File.join self.class.dirname, year.zero_pad, month.zero_pad end