Class: Sass::Tree::MixinDefNode
- Inherits:
-
Node
- Object
- Node
- Sass::Tree::MixinDefNode
- Defined in:
- /var/www/sass-pages/.sass/lib/sass/tree/mixin_def_node.rb
Overview
A dynamic node representing a mixin definition.
Instance Attribute Summary
- - (Array<(Script::Node, Script::Node)>) args The arguments for the mixin.
- - (String) name readonly The mixin name.
Instance Method Summary
- - (MixinDefNode) initialize(name, args) constructor A new instance of MixinDefNode.
Methods inherited from Node
#<<, #==, #balance, #deep_copy, #do_extend, #each, #invisible?, #style, #to_s, #to_sass, #to_scss
Constructor Details
- (MixinDefNode) initialize(name, args)
A new instance of MixinDefNode
20 21 22 23 24 |
# File '/var/www/sass-pages/.sass/lib/sass/tree/mixin_def_node.rb', line 20
def initialize(name, args)
@name = name
@args = args
super()
end
|
Instance Attribute Details
- (Array<(Script::Node, Script::Node)>) args
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.
16 17 18 |
# File '/var/www/sass-pages/.sass/lib/sass/tree/mixin_def_node.rb', line 16
def args
@args
end
|
- (String) name (readonly)
The mixin name.
9 10 11 |
# File '/var/www/sass-pages/.sass/lib/sass/tree/mixin_def_node.rb', line 9
def name
@name
end
|