class SiSU_AO_DocumentStructure::ObjectMeta
Attributes
digest[RW]
is[RW]
obj[RW]
of[RW]
tag[RW]
tmp[RW]
Public Class Methods
new()
click to toggle source
# File lib/sisu/ao_doc_objects.rb, line 79 def initialize @is=@obj=@tag=@digest=@digest=@tmp=nil @of=:meta end
Public Instance Methods
metadata(h,o=nil)
click to toggle source
# File lib/sisu/ao_doc_objects.rb, line 83 def metadata(h,o=nil) of = @of #Symbol, classification - group is = :meta #Symbol, classification - specific type tag = h[:tag] || ((defined? o.tag) ? o.tag : nil) #String, metadata type/tag 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 digest = h[:digest] || ((defined? o.digest) ? o.digest : nil) #hash digests, sha512, sha256 or md5 @of,@is,@tag,@obj,@digest,@tmp=of,is,tag,obj,digest,tmp self end