Sha256: 5e3d387770e505777b00f406fb5c28c20d8041e39341c160ce7ad1f431460270
Contents?: true
Size: 521 Bytes
Versions: 12
Compression:
Stored size: 521 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
12 entries across 12 versions & 1 rubygems