Class: JsxRosetta::IR::StyleDeclaration

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

Overview

A single CSS property/value pair, with the property already converted from JSX camelCase to CSS kebab-case.

property : String — kebab-case CSS property (e.g. “font-size”) value : String | Interpolation — String for literal CSS values

already quoted ready for output, Interpolation for runtime
values to be ERB-interpolated.

Instance Attribute Summary collapse

Instance Attribute Details

#propertyObject (readonly)

Returns the value of attribute property

Returns:

  • (Object)

    the current value of property



150
151
152
# File 'lib/jsx_rosetta/ir/types.rb', line 150

def property
  @property
end

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



150
151
152
# File 'lib/jsx_rosetta/ir/types.rb', line 150

def value
  @value
end