Module: Mayu::VDOM::SpecialElements
- Extended by:
- T::Sig
- Defined in:
- lib/mayu/vdom/special_elements.rb
Defined Under Namespace
Classes: A, Body, Head, Select
Constant Summary collapse
- MAPPINGS =
T.let( { head: Head, __mayu_head: :head, body: Body, __mayu_body: :body, a: A, __mayu_a: :a, select: Select, __mayu_select: :select }.freeze, T::Hash[Symbol, Component::ElementType] )
Class Method Summary collapse
Class Method Details
.for_type(type) ⇒ Object
103 104 105 |
# File 'lib/mayu/vdom/special_elements.rb', line 103 def self.for_type(type) MAPPINGS.fetch(T.unsafe(type), type) end |