Class: CustomElementsManifestParser::Nodes::CustomElementField
- Inherits:
-
ClassField
- Object
- Dry::Struct
- BaseStruct
- ClassField
- CustomElementsManifestParser::Nodes::CustomElementField
- Defined in:
- lib/custom_elements_manifest_parser/nodes/custom_element_field.rb
Overview
Additional metadata for fields on custom elements. This is equivalent to "ClassField"
Instance Attribute Summary collapse
-
#attribute ⇒ String?
- The corresponding attribute name if there is one.
-
#reflects ⇒ Boolean?
- If the property reflects to an attribute.
Attributes inherited from ClassField
#inheritedFrom, #kind, #privacy, #source
Method Summary
Methods inherited from ClassField
Methods included from Mixins::HasParentModule
Instance Attribute Details
#attribute ⇒ String?
Returns -
The corresponding attribute name if there is one.
If this property is defined, the attribute must be listed in the classes'
attributes
array.
14 |
# File 'lib/custom_elements_manifest_parser/nodes/custom_element_field.rb', line 14 attribute :attribute, Types::Strict::String.optional.(required: false) |
#reflects ⇒ Boolean?
Returns -
If the property reflects to an attribute.
If this is true, the attribute
property must be defined.
20 |
# File 'lib/custom_elements_manifest_parser/nodes/custom_element_field.rb', line 20 attribute :reflects, Types::Strict::Bool.optional.(required: false) |