Class: SiSU_AO_DocumentStructure::ObjectMetadata
- Inherits:
-
Object
- Object
- SiSU_AO_DocumentStructure::ObjectMetadata
- Defined in:
- lib/sisu/ao_doc_objects.rb
Instance Attribute Summary collapse
-
#digest ⇒ Object
Returns the value of attribute digest.
-
#is ⇒ Object
Returns the value of attribute is.
-
#obj ⇒ Object
Returns the value of attribute obj.
-
#of ⇒ Object
Returns the value of attribute of.
-
#tags ⇒ Object
Returns the value of attribute tags.
Instance Method Summary collapse
-
#initialize ⇒ ObjectMetadata
constructor
A new instance of ObjectMetadata.
- #metadata(tags) ⇒ Object
Constructor Details
#initialize ⇒ ObjectMetadata
Returns a new instance of ObjectMetadata.
65 66 67 68 69 |
# File 'lib/sisu/ao_doc_objects.rb', line 65 def initialize @tags={} @is=@tmp=@digest=nil @of=:meta end |
Instance Attribute Details
#digest ⇒ Object
Returns the value of attribute digest.
64 65 66 |
# File 'lib/sisu/ao_doc_objects.rb', line 64 def digest @digest end |
#is ⇒ Object
Returns the value of attribute is.
64 65 66 |
# File 'lib/sisu/ao_doc_objects.rb', line 64 def is @is end |
#obj ⇒ Object
Returns the value of attribute obj.
64 65 66 |
# File 'lib/sisu/ao_doc_objects.rb', line 64 def obj @obj end |
#of ⇒ Object
Returns the value of attribute of.
64 65 66 |
# File 'lib/sisu/ao_doc_objects.rb', line 64 def of @of end |
#tags ⇒ Object
Returns the value of attribute tags.
64 65 66 |
# File 'lib/sisu/ao_doc_objects.rb', line 64 def @tags end |
Instance Method Details
#metadata(tags) ⇒ Object
70 71 72 73 74 75 76 77 |
# File 'lib/sisu/ao_doc_objects.rb', line 70 def () of = @of #Symbol, classification - group is = :meta #Symbol, classification - specific type = || ((defined? o.) ? o. : {}) #String, metadata type/tag obj = nil @of,@is,@tags,@obj=of,is,,obj self end |