Module: DailyLog
- Defined in:
- lib/daily_log.rb,
lib/daily_log/day.rb,
lib/daily_log/entry.rb,
lib/daily_log/options.rb,
lib/daily_log/version.rb,
lib/daily_log/pathname.rb,
lib/daily_log/scm_check.rb,
lib/daily_log/latest_date.rb
Defined Under Namespace
Classes: Day, Entry, LatestDate, Options, Pathname, ScmCheck
Constant Summary collapse
- VERSION =
"0.1.2"
Class Method Summary collapse
-
.open_or_print(options = {}) ⇒ Object
Open or print the Entry file, depending on the options.
Class Method Details
.open_or_print(options = {}) ⇒ Object
Open or print the Entry file, depending on the options
15 16 17 18 19 20 21 |
# File 'lib/daily_log.rb', line 15 def open_or_print( = {}) @day = Day.new([:date]) @entry = Entry.new(@day) puts @entry.pathname if [:path] @entry.print if [:print] @entry.open if [:edit] end |