Module component
Component A Component is a pure data container.
A Component is contained by a single entity.
Functions
Component.new (populate) | Creates a new ComponentClass. |
Component:__populate () | Internal: Populates a Component with values |
Component:__initialize (...) | Internal: Creates and populates a new Component. |
Functions
- Component.new (populate)
-
Creates a new ComponentClass.
Parameters:
- populate Function that populates a Component with values
Returns:
-
A new ComponentClass
- Component:__populate ()
- Internal: Populates a Component with values
- Component:__initialize (...)
-
Internal: Creates and populates a new Component.
Parameters:
- ... Varargs passed to the populate function
Returns:
-
A new populated Component