Class: Puppet::Pops::Types::PSensitiveType::Sensitive
- Defined in:
- lib/puppet/pops/types/p_sensitive_type.rb
Instance Method Summary collapse
-
#initialize(value) ⇒ Sensitive
constructor
A new instance of Sensitive.
- #inspect ⇒ Object
- #to_s ⇒ Object
- #unwrap ⇒ Object
Constructor Details
#initialize(value) ⇒ Sensitive
Returns a new instance of Sensitive.
12 13 14 |
# File 'lib/puppet/pops/types/p_sensitive_type.rb', line 12 def initialize(value) @value = value end |
Instance Method Details
#inspect ⇒ Object
24 25 26 |
# File 'lib/puppet/pops/types/p_sensitive_type.rb', line 24 def inspect "#<#{to_s}>" end |
#to_s ⇒ Object
20 21 22 |
# File 'lib/puppet/pops/types/p_sensitive_type.rb', line 20 def to_s "Sensitive [value redacted]" end |
#unwrap ⇒ Object
16 17 18 |
# File 'lib/puppet/pops/types/p_sensitive_type.rb', line 16 def unwrap @value end |