Documentation / @blazetrails/activesupport / Configuration
Class: Configuration
Defined in: packages/activesupport/lib/configurable.ts:7
Extends
Constructors
Constructor
new Configuration(
parent?):Configuration
Defined in: packages/activesupport/lib/ordered-options.ts:217
Parameters
| Parameter | Type | Default value |
|---|---|---|
parent | Record<string, unknown> | OrderedOptions | null | null |
Returns
Configuration
Inherited from
InheritableOptions.constructor
Properties
defaultBlock?
protectedoptionaldefaultBlock?: (key) =>unknown
Defined in: packages/activesupport/lib/ordered-options.ts:13
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
unknown
Inherited from
InheritableOptions.defaultBlock
name
staticname:string="ActiveSupport::InheritableOptions"
Defined in: packages/activesupport/lib/ordered-options.ts:213
Inherited from
Accessors
count
Get Signature
get count():
number
Defined in: packages/activesupport/lib/ordered-options.ts:168
Returns
number
Inherited from
size
Get Signature
get size():
number
Defined in: packages/activesupport/lib/ordered-options.ts:164
Returns
number
Inherited from
Methods
_get()
protected_get(key):unknown
Defined in: packages/activesupport/lib/ordered-options.ts:20
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
unknown
Inherited from
clear()
clear():
this
Defined in: packages/activesupport/lib/ordered-options.ts:127
Returns
this
Inherited from
compileMethodsBang()
compileMethodsBang():
void
Defined in: packages/activesupport/lib/configurable.ts:8
Returns
void
delete()
delete(
key):unknown
Defined in: packages/activesupport/lib/ordered-options.ts:121
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
unknown
Inherited from
dig()
dig(
key, ...identifiers):unknown
Defined in: packages/activesupport/lib/ordered-options.ts:47
Mirrors dig (ordered_options.rb:45-47), whose super is rb_hash_dig (vendor/ruby/v3.3.11/hash.c:4627): rb_hash_aref for the first key — which is get, so the default block runs — and rb_obj_dig (vendor/ruby/v3.3.11/object.c:3906) for the rest. That loop ends on nil, indexes a Hash through rb_hash_aref and an Array through rb_ary_at — whose index goes through NUM2LONG (vendor/ruby/v3.3.11/array.c:1881-1883), so a String identifier is a TypeError there and not an index — hands the remaining identifiers to an object that answers dig, and otherwise raises no_dig_method's TypeError (object.c:3897-3900). A Ruby Hash is a plain object or a Map in trails, so both take the rb_hash_aref arm.
Parameters
| Parameter | Type |
|---|---|
key | string |
...identifiers | (string | number)[] |
Returns
unknown
Inherited from
dup()
dup():
this
Defined in: packages/activesupport/lib/ordered-options.ts:172
Returns
this
Inherited from
each()
each(
fn):this
Defined in: packages/activesupport/lib/ordered-options.ts:274
Parameters
| Parameter | Type |
|---|---|
fn | (key, value) => void |
Returns
this
Inherited from
entries()
entries(): [
string,unknown][]
Defined in: packages/activesupport/lib/ordered-options.ts:140
Returns
[string, unknown][]
Inherited from
equals()
equals(
other):boolean
Defined in: packages/activesupport/lib/ordered-options.ts:155
Parameters
| Parameter | Type |
|---|---|
other | unknown |
Returns
boolean
Inherited from
fetch()
fetch(
key, ...rest):unknown
Defined in: packages/activesupport/lib/ordered-options.ts:86
Hash#fetch (vendor/ruby/v3.3.11/hash.c:2176), which OrderedOptions < Hash (ordered_options.rb:32) inherits: the stored value, else the block's or the default's, else KeyError. The default block is not consulted. []= stores key.to_sym (ordered_options.rb:37-43), so data holds each key in its Symbol form and a miss inspects as :name.
Parameters
| Parameter | Type |
|---|---|
key | string |
...rest | [] | [unknown] |
Returns
unknown
Inherited from
get()
get(
key):unknown
Defined in: packages/activesupport/lib/ordered-options.ts:30
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
unknown
Inherited from
inheritableCopy()
inheritableCopy():
InheritableOptions
Defined in: packages/activesupport/lib/ordered-options.ts:266
Returns
Inherited from
InheritableOptions.inheritableCopy
inspect()
inspect():
string
Defined in: packages/activesupport/lib/ordered-options.ts:237
Returns
string
Inherited from
isExtractableOptions()
isExtractableOptions():
boolean
Defined in: packages/activesupport/lib/ordered-options.ts:94
Returns
boolean
Inherited from
InheritableOptions.isExtractableOptions
isKey()
isKey(
key):boolean
Defined in: packages/activesupport/lib/ordered-options.ts:254
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
boolean
Inherited from
isOverridden()
isOverridden(
key):boolean
Defined in: packages/activesupport/lib/ordered-options.ts:258
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
boolean
Inherited from
InheritableOptions.isOverridden
key()
key(
value):string|undefined
Defined in: packages/activesupport/lib/ordered-options.ts:111
Parameters
| Parameter | Type |
|---|---|
value | unknown |
Returns
string | undefined
Inherited from
keys()
keys():
string[]
Defined in: packages/activesupport/lib/ordered-options.ts:132
Returns
string[]
Inherited from
ownKey()
protectedownKey(key):boolean
Defined in: packages/activesupport/lib/ordered-options.ts:250
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
boolean
Inherited from
prettyPrint()
prettyPrint(
pp):void|Promise<void>
Defined in: packages/activesupport/lib/ordered-options.ts:246
Parameters
| Parameter | Type |
|---|---|
pp | PP |
Returns
void | Promise<void>
Inherited from
InheritableOptions.prettyPrint
respondToMissing()
respondToMissing(
name,includePrivate):boolean
Defined in: packages/activesupport/lib/ordered-options.ts:90
Parameters
| Parameter | Type |
|---|---|
name | string |
includePrivate | boolean |
Returns
boolean
Inherited from
InheritableOptions.respondToMissing
set()
set(
key,value):this
Defined in: packages/activesupport/lib/ordered-options.ts:25
Parameters
| Parameter | Type |
|---|---|
key | string |
value | unknown |
Returns
this
Inherited from
toA()
toA(): [
string,unknown][]
Defined in: packages/activesupport/lib/ordered-options.ts:270
Returns
[string, unknown][]
Inherited from
toH()
toH():
Record<string,unknown>
Defined in: packages/activesupport/lib/ordered-options.ts:230
Returns
Record<string, unknown>
Inherited from
toHash()
toHash():
this
Defined in: packages/activesupport/lib/ordered-options.ts:151
Returns
this
No Rails Equivalent
PERMANENT
Inherited from
toString()
toString():
string
Defined in: packages/activesupport/lib/ordered-options.ts:241
Returns
string
Inherited from
update()
update(
otherHash):this
Defined in: packages/activesupport/lib/ordered-options.ts:116
Parameters
| Parameter | Type |
|---|---|
otherHash | Record<string, unknown> |
Returns
this
Inherited from
values()
values():
unknown[]
Defined in: packages/activesupport/lib/ordered-options.ts:136
Returns
unknown[]
Inherited from
compileMethodsBang()
staticcompileMethodsBang(keys):void
Defined in: packages/activesupport/lib/configurable.ts:14
Parameters
| Parameter | Type |
|---|---|
keys | string[] |
Returns
void
Missing Rails Call
class_eval — PERMANENT