class Sass::Selector::SelectorPseudoClass - sass-3.2.19 Documentation

# class Sass::Selector::SelectorPseudoClass

A pseudoclass selector whose argument is itself a selector (e.g. `:not(.foo)` or `:-moz-all(.foo, .bar)`).

### Attributes

name[R]

The name of the pseudoclass.

@return [String]

selector[R]

The selector argument.

@return [Selector::Sequence]

### Public Class Methods

new(name, selector) click to toggle source

@param [String] The name of the pseudoclass @param [Selector::CommaSequence] The selector argument

    # File lib/sass/selector.rb, line 436
    def initialize(name, selector)
      @name = name
      @selector = selector
    end

### Public Instance Methods

specificity() click to toggle source

@see Sass::Selector::AbstractSequence#specificity

    # File lib/sass/selector.rb, line 447
    def specificity
      SPECIFICITY_BASE
    end

to_a() click to toggle source

@see Selector#to_a

    # File lib/sass/selector.rb, line 442
    def to_a
      [":", @name, "("] + @selector.to_a + [")"]
    end