Class: SiSU_AO_DocumentStructure::ObjectMetadata

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObjectMetadata

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

#digestObject

Returns the value of attribute digest.



62
63
64
# File 'lib/sisu/ao_doc_objects.rb', line 62

def digest
  @digest
end

#isObject

Returns the value of attribute is.



62
63
64
# File 'lib/sisu/ao_doc_objects.rb', line 62

def is
  @is
end

#objObject

Returns the value of attribute obj.



62
63
64
# File 'lib/sisu/ao_doc_objects.rb', line 62

def obj
  @obj
end

#ofObject

Returns the value of attribute of.



62
63
64
# File 'lib/sisu/ao_doc_objects.rb', line 62

def of
  @of
end

#tagsObject

Returns the value of attribute tags.



62
63
64
# File 'lib/sisu/ao_doc_objects.rb', line 62

def tags
  @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 (tags)
  of      = @of                                                                 #Symbol, classification - group
  is      = :meta                                                               #Symbol, classification - specific type
  tags    = tags            || ((defined? o.tags)      ? o.tags        : {})    #String, metadata type/tag
  obj     = nil
  @of,@is,@tags,@obj=of,is,tags,obj
  self
end