Class: Sass::Selector::Negation
Overview
A negation pseudoclass selector (e.g. :not(.foo)
).
Instance Attribute Summary collapse
-
#selector ⇒ Selector
readonly
The selector to negate.
Attributes inherited from Simple
Instance Method Summary collapse
-
#initialize(selector) ⇒ Negation
constructor
A new instance of Negation.
- #to_a
Methods inherited from Simple
#eql?, #hash, #inspect, #unify, #unify_namespaces
Constructor Details
#initialize(selector) ⇒ Negation
Returns a new instance of Negation.
343 344 345 |
# File 'lib/sass/selector.rb', line 343
def initialize(selector)
@selector = selector
end
|
Instance Attribute Details
#selector ⇒ Selector (readonly)
The selector to negate.
340 341 342 |
# File 'lib/sass/selector.rb', line 340
def selector
@selector
end
|
Instance Method Details
#to_a
348 349 350 |
# File 'lib/sass/selector.rb', line 348
def to_a
[":not("] + @selector.to_a + [")"]
end
|