Module: SecretString::CoreExtensions::String
- Defined in:
- lib/secret_string/core_extensions/string.rb
Overview
Make sure a String can be used as a SecretString. This helps in avoiding code like “if my_str.is_a?(SecretString)” to access to its content.
Instance Method Summary collapse
-
#erase ⇒ Object
Erase the string.
-
#to_unprotected ⇒ Object
Return the unprotected String.
Instance Method Details
#erase ⇒ Object
Erase the string
18 19 20 |
# File 'lib/secret_string/core_extensions/string.rb', line 18 def erase # Nothing to do end |
#to_unprotected ⇒ Object
Return the unprotected String
- Result
-
String: Unprotected string
13 14 15 |
# File 'lib/secret_string/core_extensions/string.rb', line 13 def to_unprotected self end |