Module: Mayu::VDOM::Interfaces::Descriptor
Defined Under Namespace
Modules: Factory
Constant Summary collapse
- TEXT =
:TEXT- COMMENT =
:COMMENT
Instance Method Summary collapse
- #children ⇒ Object
- #comment? ⇒ Boolean
- #component? ⇒ Boolean
- #component_class ⇒ Object
- #element? ⇒ Boolean
- #eql?(other) ⇒ Boolean
- #has_children? ⇒ Boolean
- #hash ⇒ Object
- #itself ⇒ Object
- #key ⇒ Object
- #props ⇒ Object
- #same?(other) ⇒ Boolean
- #slot ⇒ Object
- #text ⇒ Object
- #text? ⇒ Boolean
- #then {|_self| ... } ⇒ Object
- #type ⇒ Object
Instance Method Details
#children ⇒ Object
118 |
# File 'lib/mayu/vdom/interfaces.rb', line 118 def children = props[:children] |
#component? ⇒ Boolean
98 99 |
# File 'lib/mayu/vdom/interfaces.rb', line 98 def component? end |
#component_class ⇒ Object
127 128 |
# File 'lib/mayu/vdom/interfaces.rb', line 127 def component_class end |
#element? ⇒ Boolean
95 |
# File 'lib/mayu/vdom/interfaces.rb', line 95 def element? = type.is_a?(Symbol) |
#eql?(other) ⇒ Boolean
155 156 |
# File 'lib/mayu/vdom/interfaces.rb', line 155 def eql?(other) end |
#has_children? ⇒ Boolean
121 |
# File 'lib/mayu/vdom/interfaces.rb', line 121 def has_children? = children.any? |
#hash ⇒ Object
147 148 149 |
# File 'lib/mayu/vdom/interfaces.rb', line 147 def hash [type, slot, key, type == :input && props[:type]].hash end |
#itself ⇒ Object
131 |
# File 'lib/mayu/vdom/interfaces.rb', line 131 def itself = self |
#key ⇒ Object
110 111 |
# File 'lib/mayu/vdom/interfaces.rb', line 110 def key end |
#props ⇒ Object
106 107 |
# File 'lib/mayu/vdom/interfaces.rb', line 106 def props end |
#same?(other) ⇒ Boolean
161 162 |
# File 'lib/mayu/vdom/interfaces.rb', line 161 def same?(other) end |
#slot ⇒ Object
114 115 |
# File 'lib/mayu/vdom/interfaces.rb', line 114 def slot end |
#text ⇒ Object
124 |
# File 'lib/mayu/vdom/interfaces.rb', line 124 def text = props[:text_content].to_s |
#then {|_self| ... } ⇒ Object
141 |
# File 'lib/mayu/vdom/interfaces.rb', line 141 def then(&block) = yield self |
#type ⇒ Object
102 103 |
# File 'lib/mayu/vdom/interfaces.rb', line 102 def type end |