All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gems.sass-3.5.5.lib.sass.script.tree.selector.rb Maven / Gradle / Ivy

There is a newer version: 3.7.2
Show newest version
module Sass::Script::Tree
  # A SassScript node that will resolve to the current selector.
  class Selector < Node
    def initialize; end

    def children
      []
    end

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

    def deep_copy
      dup
    end

    protected

    def _perform(environment)
      selector = environment.selector
      return opts(Sass::Script::Value::Null.new) unless selector
      opts(selector.to_sass_script)
    end
  end
end




© 2015 - 2025 Weber Informatics LLC | Privacy Policy