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

# class Sass::Selector::Class

A class selector (e.g. `.foo`).

### Attributes

name[R]

The class name.

@return [Array<String, Sass::Script::Node>]

### Public Class Methods

new(name) click to toggle source

@param name [Array<String, Sass::Script::Node>] The class name

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

### Public Instance Methods

specificity() click to toggle source

@see Sass::Selector::AbstractSequence#specificity

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

to_a() click to toggle source

@see Selector#to_a

    # File lib/sass/selector.rb, line 59
    def to_a
      [".", *@name]
    end