Class: SiSU_AO_DocumentStructure::ObjectComment
- Inherits:
-
Object
- Object
- SiSU_AO_DocumentStructure::ObjectComment
- Defined in:
- lib/sisu/ao_doc_objects.rb
Instance Attribute Summary collapse
-
#is ⇒ Object
Returns the value of attribute is.
-
#obj ⇒ Object
Returns the value of attribute obj.
-
#of ⇒ Object
Returns the value of attribute of.
-
#tmp ⇒ Object
Returns the value of attribute tmp.
Instance Method Summary collapse
- #comment(h, o = nil) ⇒ Object
-
#initialize ⇒ ObjectComment
constructor
A new instance of ObjectComment.
Constructor Details
#initialize ⇒ ObjectComment
Returns a new instance of ObjectComment.
550 551 552 553 |
# File 'lib/sisu/ao_doc_objects.rb', line 550 def initialize @of=:comment @is=@obj=@tmp=nil end |
Instance Attribute Details
#is ⇒ Object
Returns the value of attribute is.
549 550 551 |
# File 'lib/sisu/ao_doc_objects.rb', line 549 def is @is end |
#obj ⇒ Object
Returns the value of attribute obj.
549 550 551 |
# File 'lib/sisu/ao_doc_objects.rb', line 549 def obj @obj end |
#of ⇒ Object
Returns the value of attribute of.
549 550 551 |
# File 'lib/sisu/ao_doc_objects.rb', line 549 def of @of end |
#tmp ⇒ Object
Returns the value of attribute tmp.
549 550 551 |
# File 'lib/sisu/ao_doc_objects.rb', line 549 def tmp @tmp end |
Instance Method Details
#comment(h, o = nil) ⇒ Object
554 555 556 557 558 559 560 561 |
# File 'lib/sisu/ao_doc_objects.rb', line 554 def comment(h,o=nil) of= @of #Symbol, classification - group is= :comment #Symbol, classification - specific type 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 @of,@is,@obj,@tmp=of,is,obj,tmp self end |