Class: JsxRosetta::IR::Lambda

Inherits:
Data
  • Object
show all
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

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



332
333
334
# File 'lib/jsx_rosetta/ir/types.rb', line 332

def body
  @body
end

#paramsObject (readonly)

Returns the value of attribute params

Returns:

  • (Object)

    the current value of params



332
333
334
# File 'lib/jsx_rosetta/ir/types.rb', line 332

def params
  @params
end