Class: PasswordMasker
- Inherits:
-
Object
- Object
- PasswordMasker
- Defined in:
- lib/passwordmasker.rb
Overview
- Author
-
Chef Partner Engineering (<[email protected]>)
- Copyright
-
Copyright © 2015 Chef Software, Inc.
- License
-
Apache License, Version 2.0
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Constant Summary collapse
- VERSION =
'1.0.0'
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(str) ⇒ PasswordMasker
constructor
A new instance of PasswordMasker.
- #inspect ⇒ Object (also: #to_s)
Constructor Details
#initialize(str) ⇒ PasswordMasker
Returns a new instance of PasswordMasker.
23 24 25 |
# File 'lib/passwordmasker.rb', line 23 def initialize(str) @value = str end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
21 22 23 |
# File 'lib/passwordmasker.rb', line 21 def value @value end |
Instance Method Details
#inspect ⇒ Object Also known as: to_s
27 28 29 |
# File 'lib/passwordmasker.rb', line 27 def inspect '********' end |