Class: Unisec::CLI::Commands::Confusables::Randomize
- Inherits:
-
Dry::CLI::Command
- Object
- Dry::CLI::Command
- Unisec::CLI::Commands::Confusables::Randomize
- Defined in:
- lib/unisec/cli/confusables.rb
Overview
Command ‘unisec confusables randomize`
Example:
“‘plaintext $ unisec confusables randomize noraj Original: noraj Transformed: ռ໐𝘳𝜶𝙟 …“`
Instance Method Summary collapse
-
#call(str: nil) ⇒ Object
Replace all characters from a string with random confusables when possible.
Instance Method Details
#call(str: nil) ⇒ Object
Replace all characters from a string with random confusables when possible
56 57 58 |
# File 'lib/unisec/cli/confusables.rb', line 56 def call(str: nil, **) Unisec::Confusables.randomize_display(str) end |