Superconf::Alias(T)
Inherits Superconf::AbstractOption < Reference < Object
A second name for an already-registered option, sharing its value, type, default, parsing and validation. Carries its own config key, environment variable and CLI flag, but every read/write forwards to the target option.
Created by Superconf.register_alias / .option_alias to promote a
lower-level (library) option under an app's own name. The target is always
a concrete Option(T): aliases of aliases collapse to the underlying
option (see Superconf.register_alias), so there's never a chain to walk.
Constructors
Instance methods
The option an alias forwards to, or nil for a normal option. An alias
(see Superconf.register_alias) shares another option's value, type,
default, parsing and validation.
Aliasing an alias targets the same underlying option, never this wrapper.
Assign through to the target option (same precedence rules apply).
Parse str and store it, honoring precedence (see Source).
Mirrors the target's, so a dump shows where the shared value actually came from regardless of which name set it.