Class: ODDB::OdbaExporter::AcLimTable

Inherits:
Table show all
Defined in:
ext/export/src/oddbdat.rb

Constant Summary collapse

FILENAME =
's09x'

Constants inherited from Table

Table::CRLF

Instance Method Summary collapse

Methods inherited from Table

#filename

Instance Method Details

#lines(package) ⇒ Object



28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'ext/export/src/oddbdat.rb', line 28

def lines(package)
	lines = []
	unless((sl = package.sl_entry).nil?)
		if(lim = sl.limitation_text)
			chap = lim.descriptions.values.first
			chap.paragraphs.each_with_index { |par, idx|
				pack = package.oid
				line = idx 
				lim = (pack.to_s + sprintf('%03i', line).to_s).to_i
				lines << AcLimLine.new(pack, line, lim)
			}
		end
	end
	lines
end