Class: JsxRosetta::IR::Interpolation

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

Overview

An opaque JS expression embedded in JSX (between curlies). The expression text is preserved verbatim so the backend can emit it into ‘<%= %>` (or its target equivalent) for human review.

expression : String — verbatim JS source.

Instance Attribute Summary collapse

Instance Attribute Details

#expressionObject (readonly)

Returns the value of attribute expression

Returns:

  • (Object)

    the current value of expression



159
160
161
# File 'lib/jsx_rosetta/ir/types.rb', line 159

def expression
  @expression
end