Class: JsxRosetta::IR::ComponentInvocation

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

Overview

A component invocation. Distinct from Element so backends can render it as ‘render Component.new(…)` rather than as a raw HTML tag.

name : String — “Button”, “Foo.Bar”, etc. props : [Attribute | StyleBinding] children : [Element | ComponentInvocation | Text | Interpolation | Fragment]

Instance Attribute Summary collapse

Instance Attribute Details

#childrenObject (readonly)

Returns the value of attribute children

Returns:

  • (Object)

    the current value of children



82
83
84
# File 'lib/jsx_rosetta/ir/types.rb', line 82

def children
  @children
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



82
83
84
# File 'lib/jsx_rosetta/ir/types.rb', line 82

def name
  @name
end

#propsObject (readonly)

Returns the value of attribute props

Returns:

  • (Object)

    the current value of props



82
83
84
# File 'lib/jsx_rosetta/ir/types.rb', line 82

def props
  @props
end