Module: Woli

Defined in:
lib/woli.rb,
lib/woli/diary.rb,
lib/woli/config.rb,
lib/woli/version.rb,
lib/woli/cli/runner.rb,
lib/woli/diary_entry.rb,
lib/woli/cli/date_parser.rb,
lib/woli/cli/runner_edit.rb,
lib/woli/cli/runner_init.rb,
lib/woli/cli/runner_list.rb,
lib/woli/cli/runner_notify.rb,
lib/woli/cli/runner_status.rb,
lib/woli/repositories/files.rb

Defined Under Namespace

Modules: Cli, Config, Repositories Classes: ConfigError, Diary, DiaryEntry

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.configObject



11
12
13
# File 'lib/woli.rb', line 11

def self.config
  @config ||= Woli::Config.load_config
end

.diaryObject



15
16
17
# File 'lib/woli.rb', line 15

def self.diary
  @diary ||= Woli::Diary.new(self.repository)
end

.editorObject



19
20
21
# File 'lib/woli.rb', line 19

def self.editor
  config['editor'] || ENV['EDITOR'] || 'vim'
end

.repositoryObject



23
24
25
# File 'lib/woli.rb', line 23

def self.repository
  @repository ||= instantiate_repository
end