From 7ec68a4c02bf1e55744b274fe2f19f591f357a8b Mon Sep 17 00:00:00 2001 From: Neil Smith Date: Mon, 26 Sep 2011 12:12:48 +0100 Subject: [PATCH] Tweak in edge.rb --- lib/graph.njae/edge.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/graph.njae/edge.rb b/lib/graph.njae/edge.rb index 6581033..f38a32b 100644 --- a/lib/graph.njae/edge.rb +++ b/lib/graph.njae/edge.rb @@ -31,7 +31,7 @@ module GraphNjae # Return the connection object that joins this Edge to the specified Vertex def connection_at(vertex) - self.connections.select {|c| c.end.equal? vertex}.first + self.connections.find {|c| c.end.equal? vertex} end end -- 2.34.1