projects
/
graph.njae.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added hash parameter to graph initialization
[graph.njae.git]
/
lib
/
graph.njae
/
edge.rb
diff --git
a/lib/graph.njae/edge.rb
b/lib/graph.njae/edge.rb
index f38a32b21e693bbf645c25bdcca159579f97dceb..814360ba818818cd43df1cf0859208d324098c20 100644
(file)
--- 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