Class: Sass::Script::Tree::Selector

Inherits:
Node
  • Object
show all
Defined in:
/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/script/tree/selector.rb

Overview

A SassScript node that will resolve to the current selector.

Instance Attribute Summary

Attributes inherited from Node

#css_variable_warning, #filename, #line, #options, #source_range

Instance Method Summary (collapse)

Methods inherited from Node

#dasherize, #force_division!, #opts, #perform

Constructor Details

- (Selector) initialize

Returns a new instance of Selector



4
# File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/script/tree/selector.rb', line 4

def initialize; end

Instance Method Details

- _perform(environment) (protected)



20
21
22
23
24
# File '/Users/ceppstei/Projects/sass-lang/.sass/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 '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/script/tree/selector.rb', line 6

def children
  []
end

- deep_copy



14
15
16
# File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/script/tree/selector.rb', line 14

def deep_copy
  dup
end

- to_sass(opts = {})



10
11
12
# File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/script/tree/selector.rb', line 10

def to_sass(opts = {})
  '&'
end