Class | Sass::Tree::MixinNode |
In: |
lib/sass/tree/mixin_node.rb
|
Parent: | Node |
A static node representing a mixin include. When in a static tree, the sole purpose is to wrap exceptions to add the mixin to the backtrace.
@see Sass::Tree
@param name [String] The name of the mixin @param args [Array<Script::Node>] The arguments to the mixin
Returns an error message if the given child node is invalid, and false otherwise.
{ExtendNode}s are valid within {MixinNode}s.
@param child [Tree::Node] A potential child node @return [Boolean, String] Whether or not the child node is valid,
as well as the error message to display if it is invalid
Runs the mixin.
@param environment [Sass::Environment] The lexical environment containing
variable and mixin values
@raise [Sass::SyntaxError] if there is no mixin with the given name @raise [Sass::SyntaxError] if an incorrect number of arguments was passed @see Sass::Tree