Class: SiSU_AO_DocumentStructure::ObjectFlag

Inherits:
Object
  • Object
show all
Defined in:
lib/sisu/ao_doc_objects.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObjectFlag

Returns a new instance of ObjectFlag.



468
469
470
471
# File 'lib/sisu/ao_doc_objects.rb', line 468

def initialize
  @of=:flag
  @is=@obj=@flag=@act=@selections=@tmp=nil
end

Instance Attribute Details

#actObject

Returns the value of attribute act.



467
468
469
# File 'lib/sisu/ao_doc_objects.rb', line 467

def act
  @act
end

#flag(h, o = nil) ⇒ Object

Returns the value of attribute flag.



467
468
469
# File 'lib/sisu/ao_doc_objects.rb', line 467

def flag
  @flag
end

#isObject

Returns the value of attribute is.



467
468
469
# File 'lib/sisu/ao_doc_objects.rb', line 467

def is
  @is
end

#objObject

Returns the value of attribute obj.



467
468
469
# File 'lib/sisu/ao_doc_objects.rb', line 467

def obj
  @obj
end

#ofObject

Returns the value of attribute of.



467
468
469
# File 'lib/sisu/ao_doc_objects.rb', line 467

def of
  @of
end

#selectionsObject

Returns the value of attribute selections.



467
468
469
# File 'lib/sisu/ao_doc_objects.rb', line 467

def selections
  @selections
end

#tmpObject

Returns the value of attribute tmp.



467
468
469
# File 'lib/sisu/ao_doc_objects.rb', line 467

def tmp
  @tmp
end

Instance Method Details

#flag_lng(h, o = nil) ⇒ Object



496
497
498
499
500
501
502
503
504
505
506
507
# 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) ⇒ Object



484
485
486
487
488
489
490
491
492
493
494
495
# 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