Class | Sass::Tree::MixinDefNode |
In: |
lib/sass/tree/mixin_def_node.rb
|
Parent: | Node |
A dynamic node representing a mixin definition.
@see Sass::Tree
@param name [String] The mixin name @param args [Array<(Script::Node, Script::Node)>] The arguments for the mixin.
Each element is a tuple containing the variable for argument and the parse tree for the default value of the argument
Loads the mixin into the environment.
@param environment [Sass::Environment] The lexical environment containing
variable and mixin values
Returns an error message if the given child node is invalid, and false otherwise.
{ExtendNode}s are valid within {MixinDefNode}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