Class: SiSU_AO_DocumentStructure::ObjectFlag
- Inherits:
-
Object
- Object
- SiSU_AO_DocumentStructure::ObjectFlag
- Defined in:
- lib/sisu/ao_doc_objects.rb
Instance Attribute Summary collapse
-
#act ⇒ Object
Returns the value of attribute act.
-
#flag(h, o = nil) ⇒ Object
Returns the value of attribute flag.
-
#is ⇒ Object
Returns the value of attribute is.
-
#obj ⇒ Object
Returns the value of attribute obj.
-
#of ⇒ Object
Returns the value of attribute of.
-
#selections ⇒ Object
Returns the value of attribute selections.
-
#tmp ⇒ Object
Returns the value of attribute tmp.
Instance Method Summary collapse
- #flag_lng(h, o = nil) ⇒ Object
- #flag_ocn(h, o = nil) ⇒ Object
-
#initialize ⇒ ObjectFlag
constructor
A new instance of ObjectFlag.
Constructor Details
#initialize ⇒ ObjectFlag
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
#act ⇒ Object
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 |
#is ⇒ Object
Returns the value of attribute is.
467 468 469 |
# File 'lib/sisu/ao_doc_objects.rb', line 467 def is @is end |
#obj ⇒ Object
Returns the value of attribute obj.
467 468 469 |
# File 'lib/sisu/ao_doc_objects.rb', line 467 def obj @obj end |
#of ⇒ Object
Returns the value of attribute of.
467 468 469 |
# File 'lib/sisu/ao_doc_objects.rb', line 467 def of @of end |
#selections ⇒ Object
Returns the value of attribute selections.
467 468 469 |
# File 'lib/sisu/ao_doc_objects.rb', line 467 def selections @selections end |
#tmp ⇒ Object
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 |