Class Sass::Script::Value::List
In: lib/sass/script/value/list.rb
Parent: Base

A SassScript object representing a CSS list. This includes both comma-separated lists and space-separated lists.

Methods

assert_valid_index   eq   hash   inspect   new   options=   to_h   to_s   to_sass  

External Aliases

value -> to_a

Attributes

separator  [R]  The operator separating the values of the list. Either `:comma` or `:space`.

@return [Symbol]

value  [R]  The Ruby array containing the contents of the list.

@return [Array<Value>]

Public Class methods

Asserts an index is within the list.

@private

@param list [Sass::Script::Value::List] The list for which the index should be checked. @param n [Sass::Script::Value::Number] The index being checked.

Creates a new list.

@param value [Array<Value>] See \{value} @param separator [Symbol] See \{separator}

Public Instance methods

@see Value#eq

@see Value#inspect

@see Value#options=

@see Value#to_h

@see Value#to_s

@see Value#to_sass

[Validate]