Class: Unisec::CLI::Commands::Dump::Codepoints::Integer
- Inherits:
-
Dry::CLI::Command
- Object
- Dry::CLI::Command
- Unisec::CLI::Commands::Dump::Codepoints::Integer
- 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).
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 |