Sha256: 1c87b468be3a71e3a26e11b71636184c9b6e363590d8ef8c096c9da8db454d7d

Contents?: true

Size: 227 Bytes

Versions: 14

Compression:

Stored size: 227 Bytes

Contents

# frozen_string_literal: true

module CableReady
  module Compoundable
    def compound(keys)
      keys.map { |key|
        key.respond_to?(:to_global_id) ? key.to_global_id.to_s : key.to_s
      }.join(":")
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
cable_ready-5.0.6 lib/cable_ready/compoundable.rb
cable_ready-5.0.3 lib/cable_ready/compoundable.rb
cable_ready-5.0.2 lib/cable_ready/compoundable.rb
cable_ready-5.0.1 lib/cable_ready/compoundable.rb
cable_ready-5.0.0 lib/cable_ready/compoundable.rb
cable_ready-5.0.0.rc2 lib/cable_ready/compoundable.rb
cable_ready-5.0.0.rc1 lib/cable_ready/compoundable.rb
cable_ready-5.0.0.pre10 lib/cable_ready/compoundable.rb
cable_ready-5.0.0.pre9 lib/cable_ready/compoundable.rb
cable_ready-5.0.0.pre8 lib/cable_ready/compoundable.rb
cable_ready-5.0.0.pre7 lib/cable_ready/compoundable.rb
cable_ready-5.0.0.pre6 lib/cable_ready/compoundable.rb
cable_ready-5.0.0.pre5 lib/cable_ready/compoundable.rb
cable_ready-5.0.0.pre4 lib/cable_ready/compoundable.rb