Skip to content

Documentation


Documentation / @blazetrails/activesupport / Deprecators

Class: Deprecators ​

Defined in: packages/activesupport/lib/deprecation/deprecators.ts:6

Constructors ​

Constructor ​

new Deprecators(): Deprecators

Defined in: packages/activesupport/lib/deprecation/deprecators.ts:10

Returns ​

Deprecators

Methods ​

each() ​

Call Signature ​

each(): Enumerator<Deprecation>

Defined in: packages/activesupport/lib/deprecation/deprecators.ts:25

Returns ​

Enumerator<Deprecation>

Missing Rails Call ​

each_value — PERMANENT

Call Signature ​

each(block): void

Defined in: packages/activesupport/lib/deprecation/deprecators.ts:26

Parameters ​
ParameterType
block(deprecator) => void
Returns ​

void

Missing Rails Call ​

each_value — PERMANENT


get() ​

get(name): Deprecation | undefined

Defined in: packages/activesupport/lib/deprecation/deprecators.ts:15

Parameters ​

ParameterType
namestring

Returns ​

Deprecation | undefined


set() ​

set(name, deprecator): void

Defined in: packages/activesupport/lib/deprecation/deprecators.ts:19

Parameters ​

ParameterType
namestring
deprecatorDeprecation

Returns ​

void


setBehavior() ​

setBehavior(behavior): void

Defined in: packages/activesupport/lib/deprecation/deprecators.ts:40

Parameters ​

ParameterType
behaviorDeprecationBehaviorInput

Returns ​

void


setDebug() ​

setDebug(debug): void

Defined in: packages/activesupport/lib/deprecation/deprecators.ts:36

Parameters ​

ParameterType
debugboolean

Returns ​

void


setDisallowedBehavior() ​

setDisallowedBehavior(disallowedBehavior): void

Defined in: packages/activesupport/lib/deprecation/deprecators.ts:44

Parameters ​

ParameterType
disallowedBehaviorDeprecationBehaviorInput

Returns ​

void


setDisallowedWarnings() ​

setDisallowedWarnings(disallowedWarnings): void

Defined in: packages/activesupport/lib/deprecation/deprecators.ts:48

Parameters ​

ParameterType
disallowedWarningsAllowMatcher[] | ":all"

Returns ​

void


setSilenced() ​

setSilenced(silenced): void

Defined in: packages/activesupport/lib/deprecation/deprecators.ts:32

Parameters ​

ParameterType
silencedboolean

Returns ​

void


silence() ​

silence<T>(block): T

Defined in: packages/activesupport/lib/deprecation/deprecators.ts:52

Type Parameters ​

Type Parameter
T

Parameters ​

ParameterType
block() => T

Returns ​

T