lib/grumlin/edge.rb in grumlin-0.4.0 vs lib/grumlin/edge.rb in grumlin-0.5.0

- old
+ new

@@ -1,13 +1,12 @@ # frozen_string_literal: true -# rubocop:disable Naming/VariableName,Naming/MethodParameterName,Naming/MethodName module Grumlin class Edge attr_reader :label, :id, :inVLabel, :outVLabel, :inV, :outV - def initialize(label:, id:, inVLabel:, outVLabel:, inV:, outV:) # rubocop:disable Metrics/ParameterLists + def initialize(label:, id:, inVLabel:, outVLabel:, inV:, outV:) @label = label @id = Typing.cast(id) @inVLabel = inVLabel @outVLabel = outVLabel @inV = Typing.cast(inV) @@ -22,6 +21,5 @@ "e[#{@id}][#{@inV}-#{@label}->#{@outV}]" end alias to_s inspect end end -# rubocop:enable Naming/MethodParameterName,Naming/VariableName,Naming/MethodName