Class: PROIEL::Visualization::Graphviz::TemplateContext
- Inherits:
-
Object
- Object
- PROIEL::Visualization::Graphviz::TemplateContext
- Defined in:
- lib/proiel/visualization/graphviz.rb
Instance Method Summary collapse
- #generate(template) ⇒ Object
-
#initialize(graph, direction, title = '') ⇒ TemplateContext
constructor
A new instance of TemplateContext.
Constructor Details
#initialize(graph, direction, title = '') ⇒ TemplateContext
Returns a new instance of TemplateContext.
79 80 81 82 83 |
# File 'lib/proiel/visualization/graphviz.rb', line 79 def initialize(graph, direction, title = '') @graph = graph @direction = direction @title = title end |
Instance Method Details
#generate(template) ⇒ Object
85 86 87 |
# File 'lib/proiel/visualization/graphviz.rb', line 85 def generate(template) template.result(binding) end |