Module: QDA::Backend::N6

Defined in:
lib/weft/backend/n6.rb

Constant Summary collapse

SEVENTY_YEARS =

number of seconds between 1/1/1900 and 1/1/1970

2208985187

Instance Method Summary collapse

Instance Method Details

#get_all_categoriesObject



23
24
25
# File 'lib/weft/backend/n6.rb', line 23

def get_all_categories
		@root_node
end

#get_all_docsObject



16
17
18
# File 'lib/weft/backend/n6.rb', line 16

def get_all_docs
		@docs
end

#get_doc(title) ⇒ Object



19
20
21
# File 'lib/weft/backend/n6.rb', line 19

def get_doc(title)
		@docs.find { | d | d.title == title }
end

#start(args) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/weft/backend/n6.rb', line 8

def start(args)
		@basedir = args[:basedir]
		@npr     = NPReader.new()
		@doc_dbid_counter = 0
		load_docs()
		load_nodes()
end