Class: Sass::Script::Tree::Selector
- Inherits:
-
Node
- Object
- Node
- Sass::Script::Tree::Selector
show all
- Defined in:
- lib/sass/script/tree/selector.rb
Overview
A SassScript node that will resolve to the current selector.
Instance Attribute Summary
Attributes inherited from Node
#filename, #line, #options, #source_range
Instance Method Summary
collapse
Methods inherited from Node
#dasherize, #opts, #perform
Constructor Details
Returns a new instance of Selector.
4
|
# File 'lib/sass/script/tree/selector.rb', line 4
def initialize; end
|
Instance Method Details
20
21
22
23
24
|
# File 'lib/sass/script/tree/selector.rb', line 20
def _perform(environment)
selector = environment.selector
return opts(Sass::Script::Value::Null.new) unless selector
opts(selector.to_sass_script)
end
|
#children
6
7
8
|
# File 'lib/sass/script/tree/selector.rb', line 6
def children
[]
end
|
#deep_copy
14
15
16
|
# File 'lib/sass/script/tree/selector.rb', line 14
def deep_copy
dup
end
|
#to_sass(opts = {})
10
11
12
|
# File 'lib/sass/script/tree/selector.rb', line 10
def to_sass(opts = {})
'&'
end
|