Sha256: 9b00d1b776910173d69f9947705ccc0de13aa54accc3957f4d9831f8b99607ff
Contents?: true
Size: 335 Bytes
Versions: 14
Compression:
Stored size: 335 Bytes
Contents
# frozen_string_literal: true # A simple wrapper of the ruby's group_by function. Puppet::Functions.create_function(:'facts::group_by') do dispatch :native_group_by do param 'Iterable', :collection block_param return_type 'Hash' end def native_group_by(collection, &block) collection.group_by(&block) end end
Version data entries
14 entries across 14 versions & 2 rubygems