Module: Quirk

Defined in:
lib/quirk.rb

Defined Under Namespace

Classes: App, Calendar, Habit

Constant Summary collapse

VERSION =
'0.0.6'
QUIRKFILE =
ENV['QUIRKFILE'] || "#{ENV['HOME']}/.quirk"
EDITOR =
ENV['EDITOR'] || 'vi'

Class Method Summary collapse

Class Method Details

.todayObject



9
10
11
# File 'lib/quirk.rb', line 9

def self.today
  @today || Date.today
end

.today=(date) ⇒ Object

for testing



13
14
15
# File 'lib/quirk.rb', line 13

def self.today=(date) # for testing
  @today = date
end