lib/rubysmith/pathway.rb in rubysmith-5.9.0 vs lib/rubysmith/pathway.rb in rubysmith-6.0.0

- old
+ new

@@ -1,12 +1,12 @@ # frozen_string_literal: true -require "refinements/pathnames" +require "refinements/pathname" module Rubysmith # Represents a pathway which has source start and destination end. Pathway = Struct.new :start_root, :start_path, :end_root, keyword_init: true do - using Refinements::Pathnames + using Refinements::Pathname # :reek:TooManyStatements def initialize *arguments super each_pair { |key, value| self[key] = Pathname value }