Class: Unisec::CLI::Commands::Normalize::Reverse — Documentation by YARD 0.9.44

# Class: Unisec::CLI::Commands::Normalize::Reverse

Inherits:
  Dry::CLI::Command
  - Object
  - Dry::CLI::Command
  - Unisec::CLI::Commands::Normalize::Reverse
  show all

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

## Overview

Command `unisec normalize reverse '<'`

Example:

    $ unisec normalize reverse '"' --forms 'nfkc,nfkd'
    Original:
      " (U+0022)
    NFKC
      ＂ (U+FF02)
    NFKD
      ＂ (U+FF02)

## Instance Method Summary collapse

- #call(target: nil, **options) ⇒ Object

  Reverse normalize.

## Instance Method Details

### #call(target: nil, **options) ⇒ `Object`

Reverse normalize

Parameters:

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

  Normalization target

    110
    111
    112
    113
    # File 'lib/unisec/cli/normalization.rb', line 110

    def call(target: nil, **options)
      target = $stdin.read.chomp if target == '-'
      puts Unisec::Normalization.display_reverse_normalize(target, forms: options[:forms])
    end