Class: Unisec::CLI::Commands::Grep — Documentation by YARD 0.9.44

# Class: Unisec::CLI::Commands::Grep

Inherits:
  Dry::CLI::Command
  - Object
  - Dry::CLI::Command
  - Unisec::CLI::Commands::Grep
  show all

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

## Overview

CLI command `unisec grep` for the class Rugrep from the lib.

Example:

    $ unisec grep 'FRENCH \w+'
    U+20A3  ₣    FRENCH FRANC SIGN
    U+1F35F 🍟    FRENCH FRIES

## Instance Method Summary collapse

- #call(regexp: nil) ⇒ Object

  Unicode code point names matching regexp.

## Instance Method Details

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

Unicode code point names matching regexp.

Parameters:

- regexp (`Regexp`) (defaults to: `nil`) —

  Regular expression without delimiters or modifiers.
  Supports everything Ruby Regexp supports

    27
    28
    29
    # File 'lib/unisec/cli/rugrep.rb', line 27

    def call(regexp: nil, **)
      puts Unisec::Rugrep.regrep_display(regexp)
    end