Class: Sass::Script::Tree::Selector
- 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
- #_perform(environment) protected
- #children
- #deep_copy
-
#initialize ⇒ Selector
constructor
A new instance of Selector.
- #to_sass(opts = {})
Methods inherited from Node
#dasherize, #force_division!, #opts, #perform
Constructor Details
#initialize ⇒ Selector
Returns a new instance of Selector.
4 |
# File 'lib/sass/script/tree/selector.rb', line 4
def initialize; end
|
Instance Method Details
#_perform(environment) (protected)
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
|