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
.diary ⇒ Object
15
16
17
|
# File 'lib/woli.rb', line 15
def self.diary
@diary ||= Woli::Diary.new(self.repository)
end
|
.editor ⇒ Object
19
20
21
|
# File 'lib/woli.rb', line 19
def self.editor
config['editor'] || ENV['EDITOR'] || 'vim'
end
|
.repository ⇒ Object
23
24
25
|
# File 'lib/woli.rb', line 23
def self.repository
@repository ||= instantiate_repository
end
|