Class: SiSU_AO_DocumentStructure::ObjectComment

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObjectComment

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

#isObject

Returns the value of attribute is.



549
550
551
# File 'lib/sisu/ao_doc_objects.rb', line 549

def is
  @is
end

#objObject

Returns the value of attribute obj.



549
550
551
# File 'lib/sisu/ao_doc_objects.rb', line 549

def obj
  @obj
end

#ofObject

Returns the value of attribute of.



549
550
551
# File 'lib/sisu/ao_doc_objects.rb', line 549

def of
  @of
end

#tmpObject

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