Methods

Class Index [+]

Quicksearch

Sass::Selector::Attribute

An attribute selector (e.g. `[href^=“http://”]`).

Attributes

name[R]

The attribute name.

@return [Array]

namespace[R]

The attribute namespace. `nil` means the default namespace, `[“”]` means no namespace, `[“*”]` means any namespace.

@return [Array, nil]

operator[R]

The matching operator, e.g. `”=”` or `”^=”`.

@return [String]

value[R]

The right-hand side of the operator.

@return [Array]

Public Class Methods

new(name, namespace, operator, value) click to toggle source

@param name [Array] The attribute name @param namespace [Array, nil] See {#namespace} @param operator [String] The matching operator, e.g. `”=”` or `”^=”` @param value [Array] See {#value}

     # File lib/sass/selector.rb, line 263
263:       def initialize(name, namespace, operator, value)
264:         @name = name
265:         @namespace = namespace
266:         @operator = operator
267:         @value = value
268:       end

Public Instance Methods

to_a() click to toggle source

@see Selector#to_a

     # File lib/sass/selector.rb, line 271
271:       def to_a
272:         res = ["["]
273:         res.concat(@namespace) << "|" if @namespace
274:         res.concat @name
275:         (res << @operator).concat @value if @value
276:         res << "]"
277:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.