Sha256: 2242afd0f2a5c9ac62d12e904cb540a90cf0c2ee7b4f0bdde5a8e51a66354b58
Contents?: true
Size: 475 Bytes
Versions: 233
Compression:
Stored size: 475 Bytes
Contents
require 'set' require '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
233 entries across 233 versions & 2 rubygems