Class | DOT::DOTElement |
In: |
dot/dot.rb
|
Parent: | DOTSimpleElement |
an element that has options ( node, edge or graph )
name | [RW] | attr_reader :parent |
options | [RW] | attr_reader :parent |
# File dot/dot.rb, line 97 97: def initialize( params = {}, option_list = [] ) 98: super( params ) 99: @name = params['name'] ? params['name'] : nil 100: @parent = params['parent'] ? params['parent'] : nil 101: @options = {} 102: option_list.each{ |i| 103: @options[i] = params[i] if params[i] 104: } 105: @options['label'] ||= @name if @name != 'node' 106: end