Class: Proxy::RemoteExecution::Ssh::Runners::SensitiveString
- Inherits:
-
Object
- Object
- Proxy::RemoteExecution::Ssh::Runners::SensitiveString
- Defined in:
- lib/smart_proxy_remote_execution_ssh/multiplexed_ssh_connection.rb
Instance Method Summary collapse
-
#initialize(value, mask: '*****') ⇒ SensitiveString
constructor
A new instance of SensitiveString.
- #inspect ⇒ Object
- #to_s ⇒ Object
- #to_str ⇒ Object
Constructor Details
#initialize(value, mask: '*****') ⇒ SensitiveString
Returns a new instance of SensitiveString.
5 6 7 8 |
# File 'lib/smart_proxy_remote_execution_ssh/multiplexed_ssh_connection.rb', line 5 def initialize(value, mask: '*****') @value = value @mask = mask end |
Instance Method Details
#inspect ⇒ Object
10 11 12 |
# File 'lib/smart_proxy_remote_execution_ssh/multiplexed_ssh_connection.rb', line 10 def inspect '"' + to_s + '"' end |
#to_s ⇒ Object
14 15 16 |
# File 'lib/smart_proxy_remote_execution_ssh/multiplexed_ssh_connection.rb', line 14 def to_s @mask end |
#to_str ⇒ Object
18 19 20 |
# File 'lib/smart_proxy_remote_execution_ssh/multiplexed_ssh_connection.rb', line 18 def to_str @value end |