Class: CustomElementsManifestParser::DataTypes::CssPart

Inherits:
BaseStruct
  • Object
show all
Defined in:
lib/custom_elements_manifest_parser/data_types/css_part.rb

Overview

The name + description of a CSS Part

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#deprecatednil, ...

Returns - Whether the CSS shadow part is deprecated. If the value is a string, it's the reason for the deprecation.

Returns:

  • (nil, Boolean, String)

    - Whether the CSS shadow part is deprecated. If the value is a string, it's the reason for the deprecation.



25
# File 'lib/custom_elements_manifest_parser/data_types/css_part.rb', line 25

attribute :deprecated, Types::Strict::String.optional | Types::Strict::Bool.optional.meta(required: false)

#descriptionnil, String

Returns - A markdown description.

Returns:

  • (nil, String)
    • A markdown description.


19
# File 'lib/custom_elements_manifest_parser/data_types/css_part.rb', line 19

attribute :description, Types::Strict::String.optional.meta(required: false)

#nameString

Returns - Name of the CSS part.

Returns:

  • (String)
    • Name of the CSS part


11
# File 'lib/custom_elements_manifest_parser/data_types/css_part.rb', line 11

attribute :name, Types::Strict::String

#summarynil, String

Returns - A markdown summary suitable for display in a listing.

Returns:

  • (nil, String)
    • A markdown summary suitable for display in a listing.


15
# File 'lib/custom_elements_manifest_parser/data_types/css_part.rb', line 15

attribute :summary, Types::Strict::String.optional.meta(required: false)

Instance Method Details

#visit(parser:) ⇒ Object



27
28
29
# File 'lib/custom_elements_manifest_parser/data_types/css_part.rb', line 27

def visit(parser:)
  self
end