Class: Unisec::CLI::Commands::Properties::Char
- Inherits:
-
Dry::CLI::Command
- Object
- Dry::CLI::Command
- Unisec::CLI::Commands::Properties::Char
- Defined in:
- lib/unisec/cli/properties.rb
Overview
Command ‘unisec properties char`
Example:
“‘plaintext $ unisec properties char é Name: LATIN SMALL LETTER E WITH ACUTE Code Point: U+00E9
Block: Latin-1 Supplement …“‘
Instance Method Summary collapse
-
#call(character: nil, **options) ⇒ Object
Returns all properties of a given Unicode character (code point as string).
Instance Method Details
#call(character: nil, **options) ⇒ Object
Returns all properties of a given Unicode character (code point as string)
76 77 78 79 |
# File 'lib/unisec/cli/properties.rb', line 76 def call(character: nil, **) to_bool = ->(str) { str == 'true' } Unisec::Properties.char_display(character, extended: to_bool.call(.fetch(:extended))) end |