Class: JsxRosetta::IR::RenderProp
- Inherits:
-
Data
- Object
- Data
- JsxRosetta::IR::RenderProp
- Includes:
- Node
- Defined in:
- lib/jsx_rosetta/ir/types.rb
Overview
A render-prop child: ‘<Form.List>=> <div>{fields</div>}</Form.List>`. Backends emit this as a Ruby block on the render call, with the params bound as block arguments. Distinct from Loop (which iterates an iterable) and from Slot (which yields without args).
params : [String] — param names (camelCase preserved; backends snake_case). body : Node — the lowered IR node produced by the arrow’s body.
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body
343 344 345 |
# File 'lib/jsx_rosetta/ir/types.rb', line 343 def body @body end |
#params ⇒ Object (readonly)
Returns the value of attribute params
343 344 345 |
# File 'lib/jsx_rosetta/ir/types.rb', line 343 def params @params end |