Module: Renderer
- Defined in:
- lib/renderer/all.rb,
lib/renderer/json.rb,
lib/renderer/graphviz.rb,
lib/renderer/navigator.rb
Defined Under Namespace
Classes: GraphViz, Json, Navigator
Constant Summary
collapse
- ALL =
{graphviz: Renderer::GraphViz, json: Renderer::Json, navigator: Renderer::Navigator}
Class Method Summary
collapse
Class Method Details
.all ⇒ Object
15
16
17
|
# File 'lib/renderer/all.rb', line 15
def self.all
ALL.keys
end
|
.copy_asset(asset, file_name) ⇒ Object
10
11
12
13
|
# File 'lib/renderer/all.rb', line 10
def self.copy_asset(asset, file_name)
FileUtils.copy(File.expand_path("../../export/html/#{asset}", __FILE__),
File.expand_path(asset, @file_name))
end
|
.pick(r, output_file, config) ⇒ Object
6
7
8
|
# File 'lib/renderer/all.rb', line 6
def self.pick(r, output_file, config)
(ALL[(r || 'graphviz').to_sym]).new(output_file, config)
end
|