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

Version Path
puppet-8.3.0 lib/puppet/util/tag_set.rb
puppet-8.3.0-x86-mingw32 lib/puppet/util/tag_set.rb
puppet-8.3.0-x64-mingw32 lib/puppet/util/tag_set.rb
puppet-8.3.0-universal-darwin lib/puppet/util/tag_set.rb
puppet-8.3.1 lib/puppet/util/tag_set.rb
puppet-8.3.1-x86-mingw32 lib/puppet/util/tag_set.rb
puppet-8.3.1-x64-mingw32 lib/puppet/util/tag_set.rb
puppet-8.3.1-universal-darwin lib/puppet/util/tag_set.rb
puppet-8.2.0 lib/puppet/util/tag_set.rb
puppet-8.2.0-x86-mingw32 lib/puppet/util/tag_set.rb
puppet-8.2.0-x64-mingw32 lib/puppet/util/tag_set.rb
puppet-8.2.0-universal-darwin lib/puppet/util/tag_set.rb
puppet-8.1.0 lib/puppet/util/tag_set.rb
puppet-8.1.0-x86-mingw32 lib/puppet/util/tag_set.rb
puppet-8.1.0-x64-mingw32 lib/puppet/util/tag_set.rb
puppet-8.1.0-universal-darwin lib/puppet/util/tag_set.rb
puppet-8.0.1 lib/puppet/util/tag_set.rb
puppet-8.0.1-x86-mingw32 lib/puppet/util/tag_set.rb
puppet-8.0.1-x64-mingw32 lib/puppet/util/tag_set.rb
puppet-8.0.1-universal-darwin lib/puppet/util/tag_set.rb