Class: JsxRosetta::IR::Slot

Inherits:
Data
  • Object
show all
Includes:
Node
Defined in:
lib/jsx_rosetta/ir/types.rb

Overview

A content slot. Backends decide how to realize it (ViewComponent’s ‘content` for the default slot, named renders_one slots for others).

name : String — “children” for the default slot, or a prop name.

Instance Attribute Summary collapse

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



203
204
205
# File 'lib/jsx_rosetta/ir/types.rb', line 203

def name
  @name
end