Class: JsxRosetta::IR::Lambda
- Inherits:
-
Data
- Object
- Data
- JsxRosetta::IR::Lambda
- Includes:
- Node
- Defined in:
- lib/jsx_rosetta/ir/types.rb
Overview
An arrow/function expression appearing as an inline value (not in JSX child or event-handler position). Typical example: a ‘render` property inside an array-of-config-objects passed to an AG-Grid column descriptor or antd Select option. Backends emit as a Ruby method on the class (deterministically named) and reference it via `method(:name)` in the value position, since lambdas don’t carry the Phlex execution context required to call tag.* helpers.
params : [String] body : Node
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
332 333 334 |
# File 'lib/jsx_rosetta/ir/types.rb', line 332 def body @body end |
#params ⇒ Object (readonly)
Returns the value of attribute params
332 333 334 |
# File 'lib/jsx_rosetta/ir/types.rb', line 332 def params @params end |