Class: PROIEL::Visualization::Graphviz::TemplateContext

Inherits:
Object
  • Object
show all
Defined in:
lib/proiel/visualization/graphviz.rb

Instance Method Summary collapse

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