Class: Unisec::CLI::Commands::Planes::Search — Documentation by YARD 0.9.44

# Class: Unisec::CLI::Commands::Planes::Search

Inherits:
  Dry::CLI::Command
  - Object
  - Dry::CLI::Command
  - Unisec::CLI::Commands::Planes::Search
  show all

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

## Overview

Command `unisec planes search`

Example:

    $ unisec planes search 3
    Range: U+30000 - U+3FFFF    Name: Tertiary Ideographic Plane
    $ unisec planes search 2 --with-blocks=true
    Range: U+20000 - U+2FFFF    Name: Supplementary Ideographic Plane
      Blocks:
        Range: U+20000 - U+2A6DF    Name: CJK Unified Ideographs Extension B
        Range: U+2A700 - U+2B73F    Name: CJK Unified Ideographs Extension C
        Range: U+2B740 - U+2B81F    Name: CJK Unified Ideographs Extension D
        Range: U+2B820 - U+2CEAF    Name: CJK Unified Ideographs Extension E
        Range: U+2CEB0 - U+2EBEF    Name: CJK Unified Ideographs Extension F
        Range: U+2EBF0 - U+2EE5F    Name: CJK Unified Ideographs Extension I
        Range: U+2F800 - U+2FA1F    Name: CJK Compatibility Ideographs Supplement
    $ unisec planes search 'basic multilingual plane'
    Range: U+0000 - U+FFFF      Name: Basic Multilingual Plane
    $ unisec planes search 'unassigned'
    Range: U+40000 - U+4FFFF    Name: unassigned
    Range: U+50000 - U+5FFFF    Name: unassigned
    Range: U+60000 - U+6FFFF    Name: unassigned
    Range: U+70000 - U+7FFFF    Name: unassigned
    Range: U+80000 - U+8FFFF    Name: unassigned
    Range: U+90000 - U+9FFFF    Name: unassigned
    Range: U+A0000 - U+AFFFF    Name: unassigned
    Range: U+B0000 - U+BFFFF    Name: unassigned
    Range: U+C0000 - U+CFFFF    Name: unassigned
    Range: U+D0000 - U+DFFFF    Name: unassigned

## Instance Method Summary collapse

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

  Display a plane matching a plane name or plane number.

## Instance Method Details

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

Display a plane matching a plane name or plane number

Parameters:

- plane_arg (`String|Integer`) (defaults to: `nil`) —

  name or number of the plane

    90
    91
    92
    93
    94
    # File 'lib/unisec/cli/planes.rb', line 90

    def call(plane_arg: nil, **options)
      plane_arg = plane_arg.to_i if /\A\d+\Z/.match?(plane_arg) # cast decimal string to integer
      Unisec::Planes.plane_display(plane_arg, with_blocks: options[:with_blocks].to_bool,
                                              with_count: options[:with_count].to_bool)
    end