Class: ErdMap::MapBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/erd_map/map_builder.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.buildObject



92
93
94
95
96
97
98
99
100
# File 'lib/erd_map/map_builder.rb', line 92

def build
  log "Loading modules starts."
  ErdMap.load_py_call_modules
  log "Loading modules completed."

  log "Building map starts."
  new.execute
  log "Building map completed."
end

Instance Method Details

#executeObject



5
6
7
8
9
10
# File 'lib/erd_map/map_builder.rb', line 5

def execute
  import_modules
  @graph = ErdMap::Graph.new
  @graph_renderer = ErdMap::GraphRenderer.new(@graph)
  save(build_layout)
end