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.
63 64 65 66 67 |
# File 'lib/sisu/ao_doc_objects.rb', line 63 def initialize @tags={} @is=@tmp=@digest=nil @of=:meta end |
Instance Attribute Details
#digest ⇒ Object
Returns the value of attribute digest.
62 63 64 |
# File 'lib/sisu/ao_doc_objects.rb', line 62 def digest @digest end |
#is ⇒ Object
Returns the value of attribute is.
62 63 64 |
# File 'lib/sisu/ao_doc_objects.rb', line 62 def is @is end |
#obj ⇒ Object
Returns the value of attribute obj.
62 63 64 |
# File 'lib/sisu/ao_doc_objects.rb', line 62 def obj @obj end |
#of ⇒ Object
Returns the value of attribute of.
62 63 64 |
# File 'lib/sisu/ao_doc_objects.rb', line 62 def of @of end |
#tags ⇒ Object
Returns the value of attribute tags.
62 63 64 |
# File 'lib/sisu/ao_doc_objects.rb', line 62 def @tags end |
Instance Method Details
#metadata(tags) ⇒ Object
68 69 70 71 72 73 74 75 |
# File 'lib/sisu/ao_doc_objects.rb', line 68 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 |