Method: Sass::Script::Functions#selector_parse

Defined in:
lib/sass/script/functions.rb

#selector_parse($selector) ⇒ Sass::Script::Value::List

Parses a user-provided selector into a list of lists of strings as returned by &.

Examples:

selector-parse(".foo .bar, .baz .bang") => ('.foo' '.bar', '.baz' '.bang')

Returns A list of lists of strings representing $selector. This is in the same format as a selector returned by &.

Parameters:

Returns:

  • (Sass::Script::Value::List)

    A list of lists of strings representing $selector. This is in the same format as a selector returned by &.



2628
2629
2630
# File 'lib/sass/script/functions.rb', line 2628

def selector_parse(selector)
  parse_selector(selector, :selector).to_sass_script
end