Module: Things2THL

Defined in:
lib/Things2THL.rb

Defined Under Namespace

Modules: Constants, Version Classes: Converter, ThingsNode

Class Method Summary collapse

Class Method Details

.default_optionsObject

Return a structure with the default option values



905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
# File 'lib/Things2THL.rb', line 905

def Things2THL.default_options
  options=OpenStruct.new
  options.completed = false
  options.database = nil
  options.structure = nil
  options.areas = true
  options.quiet = 0
  options.archivecompleted = true
  options.projectsfolder = nil
  options.areasfolder = nil
  options.contexttagsregex = '^@'
  options.timetagsregex = '^(\d+)(min|sec|hr)$'
  options.timetags = false
  options.areas_as = nil
  options.sync = false
  options.inboxonly = false
  return options
end

.new(opt_struct = nil, things_db = nil, thl_location = nil) ⇒ Object



924
925
926
# File 'lib/Things2THL.rb', line 924

def Things2THL.new(opt_struct = nil, things_db = nil, thl_location = nil)
  Converter.new(opt_struct, things_db, thl_location)
end