Class: Concrete::IndexBuilder

Inherits:
Object
  • Object
show all
Includes:
MMGen::MetamodelGenerator
Defined in:
lib/concrete/index_builder.rb

Instance Method Summary collapse

Constructor Details

#initialize(mm, options = {}) ⇒ IndexBuilder

Returns a new instance of IndexBuilder.



11
12
13
14
15
16
# File 'lib/concrete/index_builder.rb', line 11

def initialize(mm, options={})
  @mm = mm
  @identName = options[:identifierName] || "name"
  @ignoreReferences = options[:ignoreReferences]
  @moduleClassName = options[:moduleClassName] || "Module"
end

Instance Method Details

#buildIndex(root) ⇒ Object



22
23
24
# File 'lib/concrete/index_builder.rb', line 22

def buildIndex(root)
  buildIndexInternal(root)
end

#indexMetamodelObject



18
19
20
# File 'lib/concrete/index_builder.rb', line 18

def indexMetamodel
  @indexMM ||= buildIndexMetamodel
end