class SiSU_AO_DocumentStructure::ObjectFlag

Attributes

act[RW]
flag[RW]
is[RW]
obj[RW]
of[RW]
selections[RW]
tmp[RW]

Public Class Methods

new() click to toggle source
# File lib/sisu/ao_doc_objects.rb, line 468
def initialize
  @of=:flag
  @is=@obj=@flag=@act=@selections=@tmp=nil
end

Public Instance Methods

flag_lng(h,o=nil) click to toggle source
# File lib/sisu/ao_doc_objects.rb, line 496
def flag_lng(h,o=nil)
  of=     @of                                                              #Symbol, classification - group
  is=     :flag_lng
  obj=    nil                                                              #String, text content
  flag=   h[:flag]     || ((defined? o.flag)      ? o.flag    : nil)       #Symbol, :lng_on or :lng_off
  act=    h[:act]      || ((defined? o.act)       ? o.act     : nil)       #Symbol, language set to :en etc.
  selections= h[:selections] || ((defined? o.selections) ? o.selections : nil)   #String, text content
  tmp=    h[:act]     || ((defined? o.tmp)       ? o.tmp     : nil)       #available for processing, empty after use
  @of, @is,@obj,@flag,@act,@selections,@tmp=
    of,is, obj, flag, act, selections,tmp
  self
end
flag_ocn(h,o=nil) click to toggle source
# File lib/sisu/ao_doc_objects.rb, line 484
def flag_ocn(h,o=nil)
  of=     @of                                                              #Symbol, classification - group
  is=     :flag_ocn                                                        #Symbol, classification - specific type
  obj=    nil                                                              #String, text content
  flag=   h[:flag]     || ((defined? o.flag)      ? o.flag    : nil)       #String, text content
  act=    h[:act]      || ((defined? o.act)       ? o.act     : nil)       #String, text content
  selections= h[:selections] || ((defined? o.selections) ? o.selections : nil)   #String, text content
  tmp=    h[:flag]     || ((defined? o.tmp)       ? o.tmp     : nil)       #available for processing, empty after use
  @of, @is,@obj,@flag,@act,@selections,@tmp=
    of,is, obj, flag, act, selections,tmp
  self
end