Class: Puppet::Util::TagSet
Class Method Summary
collapse
Instance Method Summary
collapse
included, #mime, #render, #support_format?, #to_json, #to_msgpack, #to_pson
Class Method Details
.from_data_hash(data) ⇒ Object
17
18
19
|
# File 'lib/puppet/util/tag_set.rb', line 17
def self.from_data_hash(data)
new(data)
end
|
.from_yaml(yaml) ⇒ Object
9
10
11
|
# File 'lib/puppet/util/tag_set.rb', line 9
def self.from_yaml(yaml)
new(Puppet::Util::Yaml.safe_load(yaml, [Symbol]))
end
|
Instance Method Details
#join(*args) ⇒ Object
26
27
28
|
# File 'lib/puppet/util/tag_set.rb', line 26
def join(*args)
to_a.join(*args)
end
|
#to_data_hash ⇒ Object
TODO: A method named #to_data_hash should not return an array
22
23
24
|
# File 'lib/puppet/util/tag_set.rb', line 22
def to_data_hash
to_a
end
|
13
14
15
|
# File 'lib/puppet/util/tag_set.rb', line 13
def to_yaml
@hash.keys.to_yaml
end
|