Sha256: 34654d5111e955519210cc57bd387d7296268bd338feca63d5a827c0a3e1b852

Contents?: true

Size: 401 Bytes

Versions: 5

Compression:

Stored size: 401 Bytes

Contents

# frozen_string_literal: true

require 'duckface/parameter_pair'

module Duckface
  class ParameterPairs
    def initialize(parameters)
      @parameters = parameters
    end

    def for_comparison
      parameter_pairs.map(&:for_comparison)
    end

    private

    def parameter_pairs
      @parameters.map do |parameter_pair|
        ParameterPair.new(parameter_pair)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
duckface-interfaces-0.0.5 lib/duckface/parameter_pairs.rb
duckface-interfaces-0.0.4 lib/duckface/parameter_pairs.rb
duckface-interfaces-0.0.3 lib/duckface/parameter_pairs.rb
duckface-interfaces-0.0.2 lib/duckface/parameter_pairs.rb
duckface-interfaces-0.0.1 lib/duckface/parameter_pairs.rb