Object Instance luci.uvl.option
Object representation of a scheme/config option.
Functions
| option (scheme, co, c, s, o) | Section instance constructor. |
| option:enum (v) | Construct an enum object instance from given or default value. |
| option:section () | Get the associated section information in scheme. |
| option:value () | Get the value of this option. |
Functions
- option (scheme, co, c, s, o)
-
Section instance constructor.
Parameters
- scheme: Scheme instance
- co: Configuration data
- c: Configuration name
- s: Section name
- o: Option name
Return value:
Option instance - option:enum (v)
-
Construct an enum object instance from given or default value.
Parameters
- v: Value to select
Return value:
Enum instance for selected value - option:section ()
-
Get the associated section information in scheme.
Return value:
Table containing the scheme properties - option:value ()
-
Get the value of this option.
Return value:
The associated configuration value