Class: SiSU_AO_DocumentStructure::ObjectTable
- Inherits:
-
Object
- Object
- SiSU_AO_DocumentStructure::ObjectTable
- Defined in:
- lib/sisu/ao_doc_objects.rb
Instance Attribute Summary collapse
-
#cols ⇒ Object
Returns the value of attribute cols.
-
#digest ⇒ Object
Returns the value of attribute digest.
-
#hang ⇒ Object
Returns the value of attribute hang.
-
#head_ ⇒ Object
Returns the value of attribute head_.
-
#idx ⇒ Object
Returns the value of attribute idx.
-
#indent ⇒ Object
Returns the value of attribute indent.
-
#is ⇒ Object
Returns the value of attribute is.
-
#lv ⇒ Object
Returns the value of attribute lv.
-
#name ⇒ Object
Returns the value of attribute name.
-
#note_ ⇒ Object
Returns the value of attribute note_.
-
#num ⇒ Object
Returns the value of attribute num.
-
#obj ⇒ Object
Returns the value of attribute obj.
-
#ocn ⇒ Object
Returns the value of attribute ocn.
-
#ocn_ ⇒ Object
Returns the value of attribute ocn_.
-
#odv ⇒ Object
Returns the value of attribute odv.
-
#of ⇒ Object
Returns the value of attribute of.
-
#osp ⇒ Object
Returns the value of attribute osp.
-
#parent ⇒ Object
Returns the value of attribute parent.
-
#size ⇒ Object
Returns the value of attribute size.
-
#tags ⇒ Object
Returns the value of attribute tags.
-
#tmp ⇒ Object
Returns the value of attribute tmp.
-
#widths ⇒ Object
Returns the value of attribute widths.
Instance Method Summary collapse
-
#initialize ⇒ ObjectTable
constructor
A new instance of ObjectTable.
- #table(h, o = nil) ⇒ Object
Constructor Details
#initialize ⇒ ObjectTable
Returns a new instance of ObjectTable.
386 387 388 389 390 |
# File 'lib/sisu/ao_doc_objects.rb', line 386 def initialize @of=:block @is=@obj=@lv=@name=@idx=@indent=@hang=@size=@ocn,@num,@head_,@cols,@widths=@odv=@osp=@parent=@note_=@ocn_=@num=@digest=@tmp=nil @tags=[] end |
Instance Attribute Details
#cols ⇒ Object
Returns the value of attribute cols.
385 386 387 |
# File 'lib/sisu/ao_doc_objects.rb', line 385 def cols @cols end |
#digest ⇒ Object
Returns the value of attribute digest.
385 386 387 |
# File 'lib/sisu/ao_doc_objects.rb', line 385 def digest @digest end |
#hang ⇒ Object
Returns the value of attribute hang.
385 386 387 |
# File 'lib/sisu/ao_doc_objects.rb', line 385 def hang @hang end |
#head_ ⇒ Object
Returns the value of attribute head_.
385 386 387 |
# File 'lib/sisu/ao_doc_objects.rb', line 385 def head_ @head_ end |
#idx ⇒ Object
Returns the value of attribute idx.
385 386 387 |
# File 'lib/sisu/ao_doc_objects.rb', line 385 def idx @idx end |
#indent ⇒ Object
Returns the value of attribute indent.
385 386 387 |
# File 'lib/sisu/ao_doc_objects.rb', line 385 def indent @indent end |
#is ⇒ Object
Returns the value of attribute is.
385 386 387 |
# File 'lib/sisu/ao_doc_objects.rb', line 385 def is @is end |
#lv ⇒ Object
Returns the value of attribute lv.
385 386 387 |
# File 'lib/sisu/ao_doc_objects.rb', line 385 def lv @lv end |
#name ⇒ Object
Returns the value of attribute name.
385 386 387 |
# File 'lib/sisu/ao_doc_objects.rb', line 385 def name @name end |
#note_ ⇒ Object
Returns the value of attribute note_.
385 386 387 |
# File 'lib/sisu/ao_doc_objects.rb', line 385 def note_ @note_ end |
#num ⇒ Object
Returns the value of attribute num.
385 386 387 |
# File 'lib/sisu/ao_doc_objects.rb', line 385 def num @num end |
#obj ⇒ Object
Returns the value of attribute obj.
385 386 387 |
# File 'lib/sisu/ao_doc_objects.rb', line 385 def obj @obj end |
#ocn ⇒ Object
Returns the value of attribute ocn.
385 386 387 |
# File 'lib/sisu/ao_doc_objects.rb', line 385 def ocn @ocn end |
#ocn_ ⇒ Object
Returns the value of attribute ocn_.
385 386 387 |
# File 'lib/sisu/ao_doc_objects.rb', line 385 def ocn_ @ocn_ end |
#odv ⇒ Object
Returns the value of attribute odv.
385 386 387 |
# File 'lib/sisu/ao_doc_objects.rb', line 385 def odv @odv end |
#of ⇒ Object
Returns the value of attribute of.
385 386 387 |
# File 'lib/sisu/ao_doc_objects.rb', line 385 def of @of end |
#osp ⇒ Object
Returns the value of attribute osp.
385 386 387 |
# File 'lib/sisu/ao_doc_objects.rb', line 385 def osp @osp end |
#parent ⇒ Object
Returns the value of attribute parent.
385 386 387 |
# File 'lib/sisu/ao_doc_objects.rb', line 385 def parent @parent end |
#size ⇒ Object
Returns the value of attribute size.
385 386 387 |
# File 'lib/sisu/ao_doc_objects.rb', line 385 def size @size end |
#tags ⇒ Object
Returns the value of attribute tags.
385 386 387 |
# File 'lib/sisu/ao_doc_objects.rb', line 385 def @tags end |
#tmp ⇒ Object
Returns the value of attribute tmp.
385 386 387 |
# File 'lib/sisu/ao_doc_objects.rb', line 385 def tmp @tmp end |
#widths ⇒ Object
Returns the value of attribute widths.
385 386 387 |
# File 'lib/sisu/ao_doc_objects.rb', line 385 def widths @widths end |
Instance Method Details
#table(h, o = nil) ⇒ Object
391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 |
# File 'lib/sisu/ao_doc_objects.rb', line 391 def table(h,o=nil) of = @of #Symbol, classification - group is = :table #Symbol, classification - specific type = h[:tags] || ((defined? o.) ? o. : []) #Array, associated object tags, names if any cols = h[:cols] || ((defined? o.cols) ? o.cols : nil) widths = h[:widths] || ((defined? o.widths) ? o.widths : nil) obj = h[:obj] || ((defined? o.obj) ? o.obj : nil) #String, text content idx = h[:idx] || ((defined? o.idx) ? o.idx : nil) #String, book index provided? ocn = h[:ocn] || ((defined? o.ocn) ? o.ocn : nil) #Integer, sequential on substantive-content objects odv = h[:odv] || ((defined? o.odv) ? o.odv : nil) osp = h[:osp] || ((defined? o.osp) ? o.osp : nil) parent = h[:parent] || ((defined? o.parent) ? o.parent : nil) #[Node parent] head_ = h[:head_] || ((defined? o.head_) ? o.head_ : false) note_ = h[:note_] || ((defined? o.note_) ? o.note_ : false) #Bool, endnotes/footnotes? (processing optimization) ocn_ = if h[:ocn_].nil? ((defined? o.ocn_) ? o.ocn_ : true) #Bool? no ocn, non-substantive content, do not include in toc #consider else h[:ocn_] end num = h[:num] || ((defined? o.num) ? o.num : nil) digest = h[:digest] || ((defined? o.digest) ? o.digest : nil) #hash digests, sha512, sha256 or md5 tmp = h[:tmp] || ((defined? o.tmp) ? o.tmp : nil) #available for processing, empty after use @of,@is,@tags,@cols,@widths,@obj,@idx,@ocn,@odv,@osp,@parent,@head_,@note_,@ocn_,@num,@digest,@tmp= of, is, , cols, widths, obj, idx, ocn, odv, osp, parent, head_, note_, ocn_, num, digest, tmp self end |