class SiSU_AO_DocumentStructure::ObjectLayout
Attributes
attr[RW]
from[RW]
is[RW]
is_for[RW]
num[RW]
obj[RW]
of[RW]
sym[RW]
tmp[RW]
Public Class Methods
new()
click to toggle source
# File lib/sisu/ao_doc_objects.rb, line 511 def initialize @of=:layout @is=@is_for=@obj=@from=@tmp=@num=nil end
Public Instance Methods
break(h,f=nil)
click to toggle source
# File lib/sisu/ao_doc_objects.rb, line 515 def break(h,f=nil) #decide how to deal with of= @of #Symbol, classification - group is= :break #Symbol, classification - specific type obj= h[:obj] #String, text content from= f tmp= h[:tmp] #available for processing, empty after use @of,@is,@obj,@from,@tmp=of,is,obj,from,tmp self end
insert(h,o=nil)
click to toggle source
# File lib/sisu/ao_doc_objects.rb, line 524 def insert(h,o=nil) #decide how to deal with, could mimic paragraph? of= @of #Symbol, classification - group is= :insert #Symbol, classification - specific type obj= h[:obj] || ((defined? o.obj) ? o.obj : nil) #String, text content tmp= h[:tmp] || ((defined? o.tmp) ? o.tmp : nil) #available for processing, empty after use @of,@is,@obj,@tmp=of,is,obj,tmp self end
open_close(h,o=nil)
click to toggle source
# File lib/sisu/ao_doc_objects.rb, line 532 def open_close(h,o=nil) #useful for poem & quote of= @of #Symbol, classification - group is= :open_close_tags #Symbol, classification - specific type is_for= h[:is_for] || ((defined? o.is_for) ? o.is_for : nil) #String, text content obj= h[:obj] || ((defined? o.obj) ? o.obj : nil) #String, text content sym= h[:sym] || ((defined? o.sym) ? o.sym : nil) #Symbol tag_open, tag_close attr= h[:attr] || ((defined? o.attr) ? o.attr : nil) #String, text content tmp= h[:tmp] || ((defined? o.tmp) ? o.tmp : nil) #available for processing, empty after use num= h[:num] || ((defined? o.num) ? o.num : nil) @of,@is,@is_for,@obj,@sym,@attr,@tmp,@num= of, is, is_for, obj, sym, attr, tmp, num self end