Skip to content

Documentation


Documentation / @blazetrails/activesupport / CurrentAttributes

Class: CurrentAttributes ​

Defined in: packages/activesupport/lib/current-attributes.ts:52

Extends ​

Constructors ​

Constructor ​

new CurrentAttributes(): CurrentAttributes

Defined in: packages/activesupport/lib/current-attributes.ts:71

Returns ​

CurrentAttributes

Inherited from ​

Included<typeof Callbacks>.constructor

Properties ​

attributes ​

attributes: Record<string, AttributeValue>

Defined in: packages/activesupport/lib/current-attributes.ts:69


runCallbacks ​

runCallbacks: (...args) => unknown

Defined in: packages/activesupport/lib/callbacks.ts:1277

Parameters ​

ParameterType
...args[string, () => unknown, RunCallbacksOptions, CallbackKind]

Returns ​

unknown

Inherited from ​

Included.runCallbacks


defaults ​

static defaults: Record<string, AttributeValue>

Defined in: packages/activesupport/lib/current-attributes.ts:57


defineCallbacks ​

static defineCallbacks: (...args) => void

Defined in: packages/activesupport/lib/current-attributes.ts:60

Parameters ​

ParameterType
...args(string | DefineCallbacksOptions<any>)[]

Returns ​

void


isDefaults ​

static isDefaults: boolean

Defined in: packages/activesupport/lib/current-attributes.ts:58


setCallback ​

static setCallback: (...args) => void

Defined in: packages/activesupport/lib/current-attributes.ts:61

Parameters ​

ParameterType
...args[string, ...filterList: FilterListEntry<any>[]]

Returns ​

void


TestHelper ​

static TestHelper: { afterTeardown: { }; beforeSetup: { }; }

Defined in: packages/activesupport/lib/current-attributes.ts:56

afterTeardown ​

afterTeardown: { }

beforeSetup ​

beforeSetup: { }

Methods ​

haltedCallbackHook() ​

haltedCallbackHook(_filter, _name): void

Defined in: packages/activesupport/lib/callbacks.ts:1278

Parameters ​

ParameterType
_filterunknown
_namestring

Returns ​

void

Inherited from ​

Included.haltedCallbackHook


reset() ​

reset(): void

Defined in: packages/activesupport/lib/current-attributes.ts:236

Returns ​

void


set() ​

set<R>(attributes, block): R

Defined in: packages/activesupport/lib/current-attributes.ts:232

Type Parameters ​

Type Parameter
R

Parameters ​

ParameterType
attributesRecord<string, AttributeValue>
block() => R

Returns ​

R


afterReset() ​

static afterReset<T>(this, ...methods): void

Defined in: packages/activesupport/lib/current-attributes.ts:155

Type Parameters ​

Type Parameter
T extends typeof CurrentAttributes

Parameters ​

ParameterType
thisT
...methods(string | ((this) => void))[]

Returns ​

void


attribute() ​

Missing Rails Call ​

generate — PERMANENT

Missing Rails Name ​

generatedAttributeMethods — PERMANENT

Call Signature ​

static attribute(...names): void

Defined in: packages/activesupport/lib/current-attributes.ts:75

Parameters ​
ParameterType
...namesstring[]
Returns ​

void

Call Signature ​

static attribute(...names): void

Defined in: packages/activesupport/lib/current-attributes.ts:76

Parameters ​
ParameterType
...names[...string[], AttributeDefinition<unknown>]
Returns ​

void


beforeReset() ​

static beforeReset<T>(this, ...methods): void

Defined in: packages/activesupport/lib/current-attributes.ts:141

Type Parameters ​

Type Parameter
T extends typeof CurrentAttributes

Parameters ​

ParameterType
thisT
...methods(string | ((this) => void))[]

Returns ​

void


clearAll() ​

static clearAll(): void

Defined in: packages/activesupport/lib/current-attributes.ts:175

Returns ​

void


instance() ​

static instance<T>(this): InstanceType<T>

Defined in: packages/activesupport/lib/current-attributes.ts:130

Type Parameters ​

Type Parameter
T extends typeof CurrentAttributes

Parameters ​

ParameterType
thisT

Returns ​

InstanceType<T>


reset() ​

static reset(): void

Defined in: packages/activesupport/lib/current-attributes.ts:162

Returns ​

void


resetAll() ​

static resetAll(): void

Defined in: packages/activesupport/lib/current-attributes.ts:171

Returns ​

void

Missing Rails Call ​

each_value — PERMANENT


resets() ​

static resets<T>(this, ...methods): void

Defined in: packages/activesupport/lib/current-attributes.ts:148

Type Parameters ​

Type Parameter
T extends typeof CurrentAttributes

Parameters ​

ParameterType
thisT
...methods(string | ((this) => void))[]

Returns ​

void


set() ​

static set<R>(attributes, block): R

Defined in: packages/activesupport/lib/current-attributes.ts:166

Type Parameters ​

Type Parameter
R

Parameters ​

ParameterType
attributesRecord<string, AttributeValue>
block() => R

Returns ​

R