Module: ConfigProtection
- Defined in:
- lib/config_protection.rb
Instance Method Summary collapse
Instance Method Details
#protected? ⇒ Boolean
2 3 4 |
# File 'lib/config_protection.rb', line 2 def protected? key.match(/[p|P]assword/) end |
#protected_value ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/config_protection.rb', line 6 def protected_value if protected? return "********" else return value end end |