lib/grumlin/edge.rb in grumlin-0.1.3 vs lib/grumlin/edge.rb in grumlin-0.2.0
- old
+ new
@@ -13,14 +13,14 @@
@inV = Typing.cast(inV)
@outV = Typing.cast(outV)
end
def ==(other)
- @label == other.label && @id == other.id
+ self.class == other.class && @label == other.label && @id == other.id
end
def inspect
- "<E #{@label}(#{@id})>"
+ "e[#{@id}][#{@inV}-#{@label}->#{@outV}]"
end
alias to_s inspect
end
end
# rubocop:enable Naming/MethodParameterName,Naming/VariableName,Naming/MethodName