Class: JsxRosetta::IR::RenderMethod
- Inherits:
-
Data
- Object
- Data
- JsxRosetta::IR::RenderMethod
- Includes:
- Node
- Defined in:
- lib/jsx_rosetta/ir/types.rb
Overview
A locally-declared JSX-returning arrow that’s invoked inside the render body: ‘const renderHeader = (count) => <h1>count</h1>; … renderHeader(headerCount)`. Backends emit one private method per RenderMethod on the generated class and reference it via a LocalRenderCall at each use site.
name : String — snake_case method name on the class. params : [String] — arrow param names (camelCase preserved; backends
snake_case to form Ruby parameter names).
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.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body
393 394 395 |
# File 'lib/jsx_rosetta/ir/types.rb', line 393 def body @body end |
#name ⇒ Object (readonly)
Returns the value of attribute name
393 394 395 |
# File 'lib/jsx_rosetta/ir/types.rb', line 393 def name @name end |
#params ⇒ Object (readonly)
Returns the value of attribute params
393 394 395 |
# File 'lib/jsx_rosetta/ir/types.rb', line 393 def params @params end |