Module: Timelog
- Defined in:
- lib/timelog.rb,
lib/timelog/book.rb,
lib/timelog/entry.rb,
lib/timelog/command.rb,
lib/timelog/version.rb,
lib/timelog/database.rb,
lib/timelog/book/clients.rb,
lib/timelog/book/entries.rb,
lib/timelog/command/help.rb,
lib/timelog/command/list.rb,
lib/timelog/command/stop.rb,
lib/timelog/book/projects.rb,
lib/timelog/command/pause.rb,
lib/timelog/command/start.rb,
lib/timelog/configuration.rb,
lib/timelog/command/active.rb,
lib/timelog/command/resume.rb,
lib/timelog/command/archive.rb,
lib/timelog/command/client_add.rb,
lib/timelog/command/project_add.rb
Defined Under Namespace
Classes: Book, Command, Configuration, Database, Entry, Error
Constant Summary collapse
- VERSION =
"0.0.1"
Class Method Summary collapse
Class Method Details
.create_error(name, default_message) ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/timelog.rb', line 17 def self.create_error(name, ) c = Class.new(Error) do |msg| define_method :initialize do |msg = | super(msg) end end Kernel.const_set name.camelcase, c end |