Class: Unisec::CLI::Commands::Dump::Codepoints::Integer — Documentation by YARD 0.9.44

# Class: Unisec::CLI::Commands::Dump::Codepoints::Integer

Inherits:
  Dry::CLI::Command
  - Object
  - Dry::CLI::Command
  - Unisec::CLI::Commands::Dump::Codepoints::Integer
  show all

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

## Overview

CLI command `unisec dump codepoints integer`.

Example:

    $ unisec dump codepoints integer 'I 💕 Ruby 💎'
    73 32 128149 32 82 117 98 121 32 128142

## Instance Method Summary collapse

- #call(input: nil) ⇒ Object

  Code point dump (integer format).

## Instance Method Details

### #call(input: nil) ⇒ `Object`

Code point dump (integer format).

Parameters:

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

  Input string to encode

    124
    125
    126
    127
    # File 'lib/unisec/cli/dump.rb', line 124

    def call(input: nil)
      input = $stdin.read.chomp if input == '-'
      puts Unisec::Utils::String.chars2intcodepoints(input)
    end