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<(String, Script::Node)>] The arguments for the mixin.
Each element is a tuple containing the name of the argument and the parse tree for the default value of the argument
# File lib/sass/tree/mixin_def_node.rb, line 11 11: def initialize(name, args) 12: @name = name 13: @args = args 14: super() 15: end
Loads the mixin into the environment.
@param environment [Sass::Environment] The lexical environment containing
variable and mixin values
# File lib/sass/tree/mixin_def_node.rb, line 23 23: def _perform(environment) 24: environment.set_mixin(@name, Sass::Mixin.new(@name, @args, environment, children)) 25: [] 26: end