Class: CustomElementsManifestParser::Structs::DeclarableNodeStruct

Inherits:
BaseStruct
  • Object
show all
Defined in:
lib/custom_elements_manifest_parser/structs/declarable_node_struct.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#parent_moduleJavaScriptModule?

Returns - A convenience helper so you don't need to manually traverse the manifest and always go top -> bottom. By using this you can grab the "path" and "exports" of a custom element.

Returns:

  • (JavaScriptModule, nil)

    - A convenience helper so you don't need to manually traverse the manifest and always go top -> bottom. By using this you can grab the "path" and "exports" of a custom element.



12
# File 'lib/custom_elements_manifest_parser/structs/declarable_node_struct.rb', line 12

attribute :_parent_module, Types::Nominal::Any.optional.meta(required: false)

Class Method Details

.build_hash(parser:, struct:) ⇒ Object



16
17
18
# File 'lib/custom_elements_manifest_parser/structs/declarable_node_struct.rb', line 16

def self.build_hash(parser:, struct:)
  {}
end