Class: JsxRosetta::IR::StyleDeclaration
- Inherits:
-
Data
- Object
- Data
- JsxRosetta::IR::StyleDeclaration
- 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
-
#property ⇒ Object
readonly
Returns the value of attribute property.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Attribute Details
#property ⇒ Object (readonly)
Returns the value of attribute property
150 151 152 |
# File 'lib/jsx_rosetta/ir/types.rb', line 150 def property @property end |
#value ⇒ Object (readonly)
Returns the value of attribute value
150 151 152 |
# File 'lib/jsx_rosetta/ir/types.rb', line 150 def value @value end |