Class: SiSU_AO_DocumentStructure::ObjectBlockTxt
- Inherits:
-
Object
- Object
- SiSU_AO_DocumentStructure::ObjectBlockTxt
- Defined in:
- lib/sisu/ao_doc_objects.rb
Instance Attribute Summary collapse
-
#digest ⇒ Object
Returns the value of attribute digest.
-
#idx ⇒ Object
Returns the value of attribute idx.
-
#is ⇒ Object
Returns the value of attribute is.
-
#lngsyn ⇒ Object
Returns the value of attribute lngsyn.
-
#note_ ⇒ Object
Returns the value of attribute note_.
-
#number_ ⇒ Object
Returns the value of attribute number_.
-
#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.
-
#tags ⇒ Object
Returns the value of attribute tags.
-
#tmp ⇒ Object
Returns the value of attribute tmp.
Instance Method Summary collapse
-
#alt(h, o = nil) ⇒ Object
see block.
- #block(h, o = nil) ⇒ Object
- #box(h, o = nil) ⇒ Object
- #code(h, o = nil) ⇒ Object
- #group(h, o = nil) ⇒ Object
-
#initialize ⇒ ObjectBlockTxt
constructor
A new instance of ObjectBlockTxt.
-
#verse(h, o = nil) ⇒ Object
part of poem decide how you deal with this.
Constructor Details
#initialize ⇒ ObjectBlockTxt
Returns a new instance of ObjectBlockTxt.
244 245 246 247 248 |
# File 'lib/sisu/ao_doc_objects.rb', line 244 def initialize @of=:block @is=@obj=@lngsyn=@idx=@ocn=@odv=@osp=@parent=@note_=@number_=@ocn_=@digest=@tmp=nil @tags=[] end |
Instance Attribute Details
#digest ⇒ Object
Returns the value of attribute digest.
243 244 245 |
# File 'lib/sisu/ao_doc_objects.rb', line 243 def digest @digest end |
#idx ⇒ Object
Returns the value of attribute idx.
243 244 245 |
# File 'lib/sisu/ao_doc_objects.rb', line 243 def idx @idx end |
#is ⇒ Object
Returns the value of attribute is.
243 244 245 |
# File 'lib/sisu/ao_doc_objects.rb', line 243 def is @is end |
#lngsyn ⇒ Object
Returns the value of attribute lngsyn.
243 244 245 |
# File 'lib/sisu/ao_doc_objects.rb', line 243 def lngsyn @lngsyn end |
#note_ ⇒ Object
Returns the value of attribute note_.
243 244 245 |
# File 'lib/sisu/ao_doc_objects.rb', line 243 def note_ @note_ end |
#number_ ⇒ Object
Returns the value of attribute number_.
243 244 245 |
# File 'lib/sisu/ao_doc_objects.rb', line 243 def number_ @number_ end |
#obj ⇒ Object
Returns the value of attribute obj.
243 244 245 |
# File 'lib/sisu/ao_doc_objects.rb', line 243 def obj @obj end |
#ocn ⇒ Object
Returns the value of attribute ocn.
243 244 245 |
# File 'lib/sisu/ao_doc_objects.rb', line 243 def ocn @ocn end |
#ocn_ ⇒ Object
Returns the value of attribute ocn_.
243 244 245 |
# File 'lib/sisu/ao_doc_objects.rb', line 243 def ocn_ @ocn_ end |
#odv ⇒ Object
Returns the value of attribute odv.
243 244 245 |
# File 'lib/sisu/ao_doc_objects.rb', line 243 def odv @odv end |
#of ⇒ Object
Returns the value of attribute of.
243 244 245 |
# File 'lib/sisu/ao_doc_objects.rb', line 243 def of @of end |
#osp ⇒ Object
Returns the value of attribute osp.
243 244 245 |
# File 'lib/sisu/ao_doc_objects.rb', line 243 def osp @osp end |
#parent ⇒ Object
Returns the value of attribute parent.
243 244 245 |
# File 'lib/sisu/ao_doc_objects.rb', line 243 def parent @parent end |
#tags ⇒ Object
Returns the value of attribute tags.
243 244 245 |
# File 'lib/sisu/ao_doc_objects.rb', line 243 def @tags end |
#tmp ⇒ Object
Returns the value of attribute tmp.
243 244 245 |
# File 'lib/sisu/ao_doc_objects.rb', line 243 def tmp @tmp end |
Instance Method Details
#alt(h, o = nil) ⇒ Object
see block
339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 |
# File 'lib/sisu/ao_doc_objects.rb', line 339 def alt(h,o=nil) #see block of = @of #Symbol, classification - group is = :alt #Symbol, classification - specific type = h[:tags] || ((defined? o.) ? o. : []) #Array, associated object tags, names if any 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] 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,@obj,@idx,@ocn,@odv,@osp,@parent,@note_,@ocn_,@num,@digest,@tmp= of, is, , obj, idx, ocn, odv, osp, parent, note_, ocn_, num, digest, tmp self end |
#block(h, o = nil) ⇒ Object
295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 |
# File 'lib/sisu/ao_doc_objects.rb', line 295 def block(h,o=nil) of = @of #Symbol, classification - group is = :block #Symbol, classification - specific type = h[:tags] || ((defined? o.) ? o. : []) #Array, associated object tags, names if any 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] 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,@obj,@idx,@ocn,@odv,@osp,@parent,@note_,@ocn_,@num,@digest,@tmp= of, is, , obj, idx, ocn, odv, osp, parent, note_, ocn_, num, digest, tmp self end |
#box(h, o = nil) ⇒ Object
273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 |
# File 'lib/sisu/ao_doc_objects.rb', line 273 def box(h,o=nil) of = @of #Symbol, classification - group is = :box #Symbol, classification - specific type = h[:tags] || ((defined? o.) ? o. : []) #Array, associated object tags, names if any 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] 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,@obj,@idx,@ocn,@odv,@osp,@parent,@note_,@ocn_,@num,@digest,@tmp= of, is, , obj, idx, ocn, odv, osp, parent, note_, ocn_, num, digest, tmp self end |
#code(h, o = nil) ⇒ Object
249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 |
# File 'lib/sisu/ao_doc_objects.rb', line 249 def code(h,o=nil) of = @of #Symbol, classification - group #alt 'code' is = :code #Symbol, classification - specific type = h[:tags] || ((defined? o.) ? o. : []) #Array, associated object tags, names if any obj = h[:obj] || ((defined? o.obj) ? o.obj : nil) #String, text content lngsyn = h[:lngsyn] || ((defined? o.lngsyn) ? o.lngsyn : :txt) #symbol, code lngsyn 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] number_ = h[:number_] || ((defined? o.number_) ? o.number_ : false) #Bool, numbered or not? 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,@obj,@lngsyn,@idx,@ocn,@odv,@osp,@parent,@number_,@note_,@ocn_,@num,@digest,@tmp= of, is, , obj, lngsyn, idx, ocn, odv, osp, parent, number_, note_, ocn_, num, digest, tmp self end |
#group(h, o = nil) ⇒ Object
317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 |
# File 'lib/sisu/ao_doc_objects.rb', line 317 def group(h,o=nil) of = @of #Symbol, classification - group is = :group #Symbol, classification - specific type = h[:tags] || ((defined? o.) ? o. : []) #Array, associated object tags, names if any 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] 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,@obj,@idx,@ocn,@odv,@osp,@parent,@note_,@ocn_,@num,@digest,@tmp= of, is, , obj, idx, ocn, odv, osp, parent, note_, ocn_, num, digest, tmp self end |
#verse(h, o = nil) ⇒ Object
part of poem decide how you deal with this
361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 |
# File 'lib/sisu/ao_doc_objects.rb', line 361 def verse(h,o=nil) #part of poem decide how you deal with this of = @of #Symbol, classification - group is = :verse #Symbol, classification - specific type = h[:tags] || ((defined? o.) ? o. : []) #Array, associated object tags, names if any 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] 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,@obj,@idx,@ocn,@odv,@osp,@parent,@note_,@ocn_,@num,@digest,@tmp= of, is, , obj, idx, ocn, odv, osp, parent, note_, ocn_, num, digest, tmp @h=nil self end |