Class: JsxRosetta::IR::ComponentInvocation
- Inherits:
-
Data
- Object
- Data
- JsxRosetta::IR::ComponentInvocation
- Includes:
- Node
- Defined in:
- lib/jsx_rosetta/ir/types.rb
Overview
A component invocation. Distinct from Element so backends can render it as ‘render Component.new(…)` rather than as a raw HTML tag.
name : String — “Button”, “Foo.Bar”, etc. props : [Attribute | StyleBinding] children : [Element | ComponentInvocation | Text | Interpolation | Fragment]
Instance Attribute Summary collapse
-
#children ⇒ Object
readonly
Returns the value of attribute children.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#props ⇒ Object
readonly
Returns the value of attribute props.
Instance Attribute Details
#children ⇒ Object (readonly)
Returns the value of attribute children
82 83 84 |
# File 'lib/jsx_rosetta/ir/types.rb', line 82 def children @children end |
#name ⇒ Object (readonly)
Returns the value of attribute name
82 83 84 |
# File 'lib/jsx_rosetta/ir/types.rb', line 82 def name @name end |
#props ⇒ Object (readonly)
Returns the value of attribute props
82 83 84 |
# File 'lib/jsx_rosetta/ir/types.rb', line 82 def props @props end |