Class: CustomElementsManifestParser::Nodes::CustomElementField

Inherits:
ClassField show all
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

Attributes inherited from ClassField

#inheritedFrom, #kind, #privacy, #source

Method Summary

Methods inherited from ClassField

kind, #visit

Methods included from Mixins::HasParentModule

#parent_module

Instance Attribute Details

#attributeString?

Returns - The corresponding attribute name if there is one. If this property is defined, the attribute must be listed in the classes' attributes array.

Returns:

  • (String, nil)

    - 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.meta(required: false)

#reflectsBoolean?

Returns - If the property reflects to an attribute. If this is true, the attribute property must be defined.

Returns:

  • (Boolean, nil)

    - 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.meta(required: false)