Class: GraphViz::Parser::Graph
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- GraphViz::Parser::Graph
- Defined in:
- lib/graphviz/parser.rb
Instance Method Summary collapse
Instance Method Details
#eval(context, hOpts) ⇒ Object
46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/graphviz/parser.rb', line 46 def eval( context, hOpts ) # puts "GRAPH TYPE = #{type.text_value}" # puts "GRAPH NAME = #{name.text_value}" hOpts = hOpts[0].merge( {:type => type.text_value} ) # Create Graph context.graph = GraphViz.new( name.text_value.gsub(/"/, ""), hOpts ) # Eval cluster cluster.eval( context ) return context.graph end |