Can't convert Fixnum to String (TypeError) #59

Closed
cbandy opened this Issue Dec 1, 2012 · 0 comments

2 participants

@cbandy

Adding an edge with a numeric label fails with the following error:

ruby-graphviz-1.0.8/lib/graphviz/types/lbl_string.rb:9:in `match': can't convert Fixnum to String (TypeError)

The last line causes the error in irb:

graph = GraphViz.digraph(:G)
a = graph.add_nodes('a')
b = graph.add_nodes('b')
graph.add_edges(a, b, label: 5)
@glejeune glejeune closed this in 7fc6632 Mar 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment