Class: Operations::Components::Base

Inherits:
Object
  • Object
show all
Extended by:
Dry::Initializer
Defined in:
lib/operations/components/base.rb

Overview

An ancestor for all the operation components. Holds shared methods.

Direct Known Subclasses

Callback, Contract, Operation, Prechecks

Constant Summary collapse

MONADS_DO_WRAPPER_SIGNATURES =
[%i[rest *], %i[block &]],
  [%i[rest], %i[block &]], # Ruby 3.0, 3.1
  [%i[rest *], %i[keyrest **], %i[block &]],
  [%i[rest], %i[keyrest], %i[block &]] # Ruby 3.0, 3.1
].freeze
DEFAULT_NAMES_MAP =

Ruby 3.0, 3.1

{ # Ruby 3.0, 3.1
  rest: "*",
  keyrest: "**"
}.freeze