class Ptimelog::Script

Wrapper around all external scripts that might be called to get more information about the time-entries

Public Class Methods

new(config_dir) click to toggle source
# File lib/ptimelog/script.rb, line 7
def initialize(config_dir)
  @config_dir = config_dir
end

Public Instance Methods

inferer(name) click to toggle source
# File lib/ptimelog/script.rb, line 11
def inferer(name)
  return NullPathname.new if name.to_s.empty?
  raise if name =~ %r{[\\/]} # prevent relavtive paths, stupidly, FIXME: really check FS

  @config_dir.join('inferers').join(name).expand_path
end