Class | Sass::Tree::Visitors::Extend |
In: |
lib/sass/tree/visitors/extend.rb
|
Parent: | Sass::Tree::Visitors::Base |
A visitor for performing selector inheritance on a static CSS tree.
Destructively modifies the tree.
Performs the given extensions on the static CSS tree based in `root`, then validates that all extends matched some selector.
@param root [Tree::Node] The root node of the tree to visit. @param extends [Sass::Util::SubsetMap{Selector::Simple =>
Sass::Tree::Visitors::Cssize::Extend}] The extensions to perform on this tree.
@return [Object] The return value of \{visit} for the root node.