Class: JsxRosetta::IR::RenderProp

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

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



343
344
345
# File 'lib/jsx_rosetta/ir/types.rb', line 343

def body
  @body
end

#paramsObject (readonly)

Returns the value of attribute params

Returns:

  • (Object)

    the current value of params



343
344
345
# File 'lib/jsx_rosetta/ir/types.rb', line 343

def params
  @params
end