Class: Puppet::Util::TagSet Private
- Includes:
- Network::FormatSupport
- Defined in:
- lib/puppet/util/tag_set.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .from_data_hash(data) ⇒ Object private
- .from_yaml(yaml) ⇒ Object private
Instance Method Summary collapse
- #join(*args) ⇒ Object private
-
#to_data_hash ⇒ Object
private
TODO: A method named #to_data_hash should not return an array.
- #to_yaml ⇒ Object private
Methods included from Network::FormatSupport
included, #mime, #render, #support_format?, #to_json, #to_msgpack, #to_pson
Class Method Details
.from_data_hash(data) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
15 16 17 |
# File 'lib/puppet/util/tag_set.rb', line 15 def self.from_data_hash(data) self.new(data) end |
Instance Method Details
#join(*args) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
24 25 26 |
# File 'lib/puppet/util/tag_set.rb', line 24 def join(*args) to_a.join(*args) end |
#to_data_hash ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
TODO: A method named #to_data_hash should not return an array
20 21 22 |
# File 'lib/puppet/util/tag_set.rb', line 20 def to_data_hash to_a end |
#to_yaml ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
11 12 13 |
# File 'lib/puppet/util/tag_set.rb', line 11 def to_yaml @hash.keys.to_yaml end |