Class: CustomElementsManifestParser::DataTypes::Slot
- Inherits:
-
BaseStruct
- Object
- Dry::Struct
- BaseStruct
- CustomElementsManifestParser::DataTypes::Slot
- Defined in:
- lib/custom_elements_manifest_parser/data_types/slot.rb
Overview
Documents slots for a custom element
Instance Attribute Summary collapse
-
#deprecated ⇒ nil, ...
- Whether the slot is deprecated.
-
#description ⇒ String?
- A markdown description.
-
#name ⇒ String
- The slot name, or the empty string for an unnamed slot.
-
#summary ⇒ String?
- A markdown summary suitable for display in a listing.
Instance Method Summary collapse
Instance Attribute Details
#deprecated ⇒ nil, ...
Returns - Whether the slot is deprecated. If the value is a string, it's the reason for the deprecation.
24 |
# File 'lib/custom_elements_manifest_parser/data_types/slot.rb', line 24 attribute :deprecated, Types::Strict::String.optional | Types::Strict::Bool.optional.(required: false) |
#description ⇒ String?
Returns - A markdown description.
18 |
# File 'lib/custom_elements_manifest_parser/data_types/slot.rb', line 18 attribute :description, Types::Strict::String.optional.(required: false) |
#name ⇒ String
Returns - The slot name, or the empty string for an unnamed slot.
10 |
# File 'lib/custom_elements_manifest_parser/data_types/slot.rb', line 10 attribute :name, Types::Strict::String |
#summary ⇒ String?
Returns - A markdown summary suitable for display in a listing.
14 |
# File 'lib/custom_elements_manifest_parser/data_types/slot.rb', line 14 attribute :summary, Types::Strict::String.optional.(required: false) |
Instance Method Details
#visit(parser:) ⇒ Object
26 27 28 |
# File 'lib/custom_elements_manifest_parser/data_types/slot.rb', line 26 def visit(parser:) self end |