d: ao_doc_objects fix for ao_doc_str
authorRalph Amissah <ralph@amissah.com>
Tue, 7 Apr 2015 17:00:58 +0000 (13:00 -0400)
committerRalph Amissah <ralph@amissah.com>
Thu, 9 Apr 2015 03:05:39 +0000 (23:05 -0400)
lib/sisu/develop/ao_doc_objects.rb

index 0d9fd7d555fae635dea9b0532bc6a13338ca450f..5a59af7d837e1fae69314cf3f8f8b12492d38a55 100644 (file)
@@ -495,6 +495,18 @@ module SiSU_AO_DocumentStructure
         of,is, obj, flag, act, selections,tmp
       self
     end
+    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
   end
   class ObjectLayout
     attr_accessor :obj,:sym,:attr,:is,:is_for,:of,:from,:tmp,:num