Class: Unisec::CLI::Commands::Surrogates::To
- Inherits:
-
Dry::CLI::Command
- Object
- Dry::CLI::Command
- Unisec::CLI::Commands::Surrogates::To
- Defined in:
- lib/unisec/cli/surrogates.rb
Overview
Command ‘unisec surrogates to`
Example:
“‘plaintext
$ unisec surrogates to 0x1F4A9
Char:
“‘
Instance Method Summary collapse
-
#call(codepoint: nil) ⇒ Object
Calculate the surrogates based on the Unicode code point.
Instance Method Details
#call(codepoint: nil) ⇒ Object
Calculate the surrogates based on the Unicode code point.
60 61 62 |
# File 'lib/unisec/cli/surrogates.rb', line 60 def call(codepoint: nil, **) puts Unisec::Surrogates.new(Unisec::Utils::String.convert(codepoint, :integer)).display end |