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

Public Class Methods

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

Public Instance Methods

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