birch 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/birch/pure.rb +2 -7
- data/lib/birch/version.rb +1 -1
- metadata +1 -1
data/lib/birch/pure.rb
CHANGED
@@ -117,13 +117,8 @@ module Birch
|
|
117
117
|
attr_reader :directed, :direction
|
118
118
|
|
119
119
|
def initialize(node_a, node_b, directed = false, direction = 0)
|
120
|
-
|
121
|
-
|
122
|
-
end
|
123
|
-
@node_a = args[0]
|
124
|
-
@node_b = args[1]
|
125
|
-
@directed = args[2]
|
126
|
-
@direction = args.size == 4 ? args[3] : nil
|
120
|
+
@node_a, @node_b = node_a, node_b
|
121
|
+
@directed, @direction = directed, direction
|
127
122
|
end
|
128
123
|
end
|
129
124
|
|
data/lib/birch/version.rb
CHANGED