class Puppet::Pops::Types::PSensitiveType::Sensitive

Public Class Methods

new(value) click to toggle source
   # File lib/puppet/pops/types/p_sensitive_type.rb
13 def initialize(value)
14   @value = value
15 end

Public Instance Methods

==(other) click to toggle source
   # File lib/puppet/pops/types/p_sensitive_type.rb
33 def ==(other)
34   other.is_a?(Sensitive) &&
35     other.hash == hash
36 end
Also aliased as: eql?
eql?(other)
Alias for: ==
hash() click to toggle source
   # File lib/puppet/pops/types/p_sensitive_type.rb
29 def hash
30   @value.hash
31 end
inspect() click to toggle source
   # File lib/puppet/pops/types/p_sensitive_type.rb
25 def inspect
26   "#<#{self}>"
27 end
to_s() click to toggle source
   # File lib/puppet/pops/types/p_sensitive_type.rb
21 def to_s
22   "Sensitive [value redacted]"
23 end
unwrap() click to toggle source
   # File lib/puppet/pops/types/p_sensitive_type.rb
17 def unwrap
18   @value
19 end