Class: Unisec::CLI::Commands::Confusables::Randomize — Documentation by YARD 0.9.44

# Class: Unisec::CLI::Commands::Confusables::Randomize

Inherits:
  Dry::CLI::Command
  - Object
  - Dry::CLI::Command
  - Unisec::CLI::Commands::Confusables::Randomize
  show all

Defined in:
  lib/unisec/cli/confusables.rb

## Overview

Command `unisec confusables randomize`

Example:

    $ 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

Parameters:

- str (`String`) (defaults to: `nil`) —

  Unicode string

    56
    57
    58
    # File 'lib/unisec/cli/confusables.rb', line 56

    def call(str: nil, **)
      Unisec::Confusables.randomize_display(str)
    end