Method: RGL::Graph#set_vertex_options
- Defined in:
- lib/rgl/dot.rb
#set_vertex_options(vertex, **options) ⇒ Object
Set the configuration values for the given vertex
24 25 26 27 28 29 30 31 |
# File 'lib/rgl/dot.rb', line 24 def (vertex, **) @vertex_options ||= {} @vertex_options[vertex] ||= {} RGL::DOT::NODE_OPTS.each do |opt| @vertex_options[vertex][:"#{opt}"] = [:"#{opt}"] if .key?(:"#{opt}") end end |