class SiSU_AO_DocumentStructure::ObjectStructure
Attributes
is[RW]
lc[RW]
ln[RW]
lv[RW]
node[RW]
obj[RW]
of[RW]
status[RW]
tag[RW]
tmp[RW]
Public Class Methods
new()
click to toggle source
# File lib/sisu/ao_doc_objects.rb, line 448 def initialize @of=:structure @is=@obj=@node=@lv=@ln=@lc=@status=@tmp=nil end
Public Instance Methods
xml_dom(h,o=nil)
click to toggle source
# File lib/sisu/ao_doc_objects.rb, line 452 def xml_dom(h,o=nil) of= @of #Symbol, classification - group is= :xml_dom #Symbol, classification - specific type obj= h[:obj] || ((defined? o.obj) ? o.obj : '') #String, text content lv= h[:lv] || ((defined? o.lv) ? o.lv : nil) #Alpha-numeric, document structure as used in markup, A-D then 1-6 ln= h[:ln] || ((defined? o.ln) ? o.ln : nil) #Integer, document structure level, for convenience in processing 1-9 lc= h[:lc] || ((defined? o.lc) ? o.lc : nil) #Integer, document structure collapsed level, convenience (collapse sisu's dual level document structure for markup with simple linear structure) node= h[:node] || ((defined? o.node) ? o.node : nil) #[Node relationship doc structure info] status= h[:status] || ((defined? o.status) ? o.status : nil) #tag status Symbol :open or :close tmp= h[:tmp] || ((defined? o.tmp) ? o.tmp : nil) #available for processing, empty after use @of,@is,@obj,@status,@node,@lv,@ln,@lc,@tmp=of,is,obj,status,node,lv,ln,lc,tmp self end