Sha256: c70cbc0cc77f28f4639f0e80db4a08dbb1ad86c5643fae185d4940180283aa06
Contents?: true
Size: 520 Bytes
Versions: 20
Compression:
Stored size: 520 Bytes
Contents
# frozen_string_literal: true require 'set' require_relative '../../puppet/network/format_support' class Puppet::Util::TagSet < Set include Puppet::Network::FormatSupport def self.from_yaml(yaml) self.new(Puppet::Util::Yaml.safe_load(yaml, [Symbol])) end def to_yaml @hash.keys.to_yaml end def self.from_data_hash(data) self.new(data) end # TODO: A method named #to_data_hash should not return an array def to_data_hash to_a end def join(*args) to_a.join(*args) end end
Version data entries
20 entries across 20 versions & 1 rubygems