Class: CustomElementsManifestParser::DataTypes::CssCustomProperty
- Inherits:
-
BaseStruct
- Object
- Dry::Struct
- BaseStruct
- CustomElementsManifestParser::DataTypes::CssCustomProperty
- Defined in:
- lib/custom_elements_manifest_parser/data_types/css_custom_property.rb
Overview
Documents a CssCustomProperty
Instance Attribute Summary collapse
-
#default ⇒ String?
- The default initial value.
-
#deprecated ⇒ nil, ...
- Whether the CSS custom property is deprecated.
-
#description ⇒ String?
- A markdown description.
-
#name ⇒ String
- The name of the property, including leading
--
.
- The name of the property, including leading
-
#summary ⇒ String?
- A markdown summary suitable for display in a listing.
-
#syntax ⇒ String?
- The expected syntax of the defined property.
Instance Method Summary collapse
Instance Attribute Details
#default ⇒ String?
Returns - The default initial value.
34 |
# File 'lib/custom_elements_manifest_parser/data_types/css_custom_property.rb', line 34 attribute :default, Types::Strict::String.optional.(required: false) |
#deprecated ⇒ nil, ...
Returns - Whether the CSS custom property is deprecated. If the value is a string, it's the reason for the deprecation.
40 |
# File 'lib/custom_elements_manifest_parser/data_types/css_custom_property.rb', line 40 attribute :deprecated, Types::Strict::String.optional | Types::Strict::Bool.optional.(required: false) |
#description ⇒ String?
Returns - A markdown description.
30 |
# File 'lib/custom_elements_manifest_parser/data_types/css_custom_property.rb', line 30 attribute :description, Types::Strict::String.optional.(required: false) |
#name ⇒ String
Returns - The name of the property, including leading --
.
10 |
# File 'lib/custom_elements_manifest_parser/data_types/css_custom_property.rb', line 10 attribute :name, Types::Strict::String |
#summary ⇒ String?
Returns - A markdown summary suitable for display in a listing.
26 |
# File 'lib/custom_elements_manifest_parser/data_types/css_custom_property.rb', line 26 attribute :summary, Types::Strict::String.optional.(required: false) |
#syntax ⇒ String?
Returns -
The expected syntax of the defined property. Defaults to "".
The syntax must be a valid CSS syntax string
as defined in the CSS Properties and Values API.
Examples:
"
22 |
# File 'lib/custom_elements_manifest_parser/data_types/css_custom_property.rb', line 22 attribute :syntax, Types::Strict::String.optional.(required: false) |
Instance Method Details
#visit(parser:) ⇒ Object
42 43 44 |
# File 'lib/custom_elements_manifest_parser/data_types/css_custom_property.rb', line 42 def visit(parser:) self end |