class

Hwaro::Assets::Sass::ListV

Inherits Hwaro::Assets::Sass::Value < Reference < Object

Constructors

new(items : Array(Value), sep : Sep = Sep::Space, bracketed : Bool = false, lazy_slash : Bool = false)
Source

Instance methods

bracketed
Source
eq?(other : Value) : Bool

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

Source
inspect_css(storage : Bool = false) : String

Unlike to_css: keeps null members (they are real elements, so dropping them changes length) and parenthesizes unbracketed sublists so nesting survives a storage round-trip.

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
items
Source
lazy_slash?

True only for a slash pair PARSED as a / b (the classic lazy division): a numeric context may fold it into the quotient. Constructed slash lists (list.slash, $separator: slash) are real lists — dart-sass errors when math coerces them, so they must not divide. Never part of equality or serialization.

Source
to_css

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

Source

Nested types