class

Hwaro::Assets::Sass::Value

Inherits Reference < Object

Instance methods

eq?(other : Value) : Bool

Sass equality (==). Subclasses override; default is identity on serialized text.

Source
inspect_css(storage : Bool = false) : String

Round-trippable text for this value — the spelling that Expr.coerce can parse back into an equal value. This is what variable storage and meta.inspect need, and it is NOT the same as to_css: CSS output drops nulls from lists and never parenthesizes a sublist, both of which destroy structure. Mirrors dart-sass's inspect vs toCssString split.

storage asks for the spelling variable storage needs on top of that: numbers at full precision (see Number#inspect_css).

Source
interp_css

CSS text for this value when it lands inside #{...}. dart-sass renders strings UNQUOTED at every nesting level there, so a list of quoted strings interpolates as a, b — "a", "b" would ship invalid CSS (content: ""a", "b""). Only Str and the containers that hold values override this.

Source
to_css

CSS text for this value (what lands in output).

Source
truthy?
Source