Class: JsxRosetta::IR::Element
- Inherits:
-
Data
- Object
- Data
- JsxRosetta::IR::Element
- Includes:
- Node
- Defined in:
- lib/jsx_rosetta/ir/types.rb
Overview
An HTML element (lowercase tag name, no member-expression form).
tag : String — “button”, “div”, etc. attributes : [Attribute | StyleBinding] (and EventBinding once Phase 4 lands) children : [Element | ComponentInvocation | Text | Interpolation | Fragment]
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#children ⇒ Object
readonly
Returns the value of attribute children.
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes
72 73 74 |
# File 'lib/jsx_rosetta/ir/types.rb', line 72 def attributes @attributes end |
#children ⇒ Object (readonly)
Returns the value of attribute children
72 73 74 |
# File 'lib/jsx_rosetta/ir/types.rb', line 72 def children @children end |
#tag ⇒ Object (readonly)
Returns the value of attribute tag
72 73 74 |
# File 'lib/jsx_rosetta/ir/types.rb', line 72 def tag @tag end |