🚨 You are viewing the legacy v1.x docs. See the new v2 documentation →
v1.5.5

Component

Represents a component.

Attributes

.name

Component class name, e.g. Elements::ButtonComponent

Type: String
.file_path

Full filesystem path to the component class file

Type: Pathname
.relative_file_path

Component class file path, relative to the components directory.

Type: Pathname
.directory_path

Directory containing the component class file

Type: Pathname
.template_file_path

Path to the component template file, if present

Type: Pathname
.inline?

Returns true if the component does not have a template file

Type: Boolean