X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=lib%2Fgraph.njae%2Fedge.rb;h=814360ba818818cd43df1cf0859208d324098c20;hb=353a5d54ad4014af126c76617d9b02029a3ee98c;hp=f38a32b21e693bbf645c25bdcca159579f97dceb;hpb=7ec68a4c02bf1e55744b274fe2f19f591f357a8b;p=graph.njae.git diff --git a/lib/graph.njae/edge.rb b/lib/graph.njae/edge.rb index f38a32b..814360b 100644 --- a/lib/graph.njae/edge.rb +++ b/lib/graph.njae/edge.rb @@ -10,8 +10,8 @@ module GraphNjae # Each connection is handled by a Graph::Connection object, so that each end # of the Edge can have it's own attributes. class Edge < OpenStruct - def initialize - super + def initialize(values = {}) + super(values) self.connections = [] self end