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.



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

#digestObject

Returns the value of attribute digest.



64
65
66
# File 'lib/sisu/ao_doc_objects.rb', line 64

def digest
  @digest
end

#isObject

Returns the value of attribute is.



64
65
66
# File 'lib/sisu/ao_doc_objects.rb', line 64

def is
  @is
end

#objObject

Returns the value of attribute obj.



64
65
66
# File 'lib/sisu/ao_doc_objects.rb', line 64

def obj
  @obj
end

#ofObject

Returns the value of attribute of.



64
65
66
# File 'lib/sisu/ao_doc_objects.rb', line 64

def of
  @of
end

#tagsObject

Returns the value of attribute tags.



64
65
66
# File 'lib/sisu/ao_doc_objects.rb', line 64

def tags
  @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 (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