Sha256: 77a170a5865bb57ec25cc85a0bf0e9f4ecaf0f9f9f7ba3cf6531f54f4b37a1a2
Contents?: true
Size: 426 Bytes
Versions: 6
Compression:
Stored size: 426 Bytes
Contents
require 'set' class Puppet::Util::TagSet < Set def self.from_yaml(yaml) self.new(YAML.load(yaml)) end def to_yaml @hash.keys.to_yaml end def self.from_pson(data) self.new(data) end def to_pson(*args) to_a.to_pson end # this makes puppet serialize it as an array for backwards # compatibility def to_zaml(z) to_a.to_zaml(z) end def join(*args) to_a.join(*args) end end
Version data entries
6 entries across 6 versions & 1 rubygems