Class: Sass::Tree::MixinNode
- Inherits:
-
Node
- Object
- Node
- Sass::Tree::MixinNode
- Defined in:
- /var/www/sass-pages/.sass/lib/sass/tree/mixin_node.rb
Overview
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.
Instance Attribute Summary
- - (Array<Script::Node>) args The arguments to the mixin.
- - ({String => Script::Node}) keywords A hash from keyword argument names to values.
- - (String) name readonly The name of the mixin.
Instance Method Summary
- - (MixinNode) initialize(name, args, keywords) constructor A new instance of MixinNode.
Methods inherited from Node
#<<, #==, #balance, #deep_copy, #do_extend, #each, #inspect, #invisible?, #style, #to_s, #to_sass, #to_scss
Constructor Details
- (MixinNode) initialize(name, args, keywords)
A new instance of MixinNode
25 26 27 28 29 30 |
# File '/var/www/sass-pages/.sass/lib/sass/tree/mixin_node.rb', line 25
def initialize(name, args, keywords)
@name = name
@args = args
@keywords = keywords
super()
end
|
Instance Attribute Details
- (Array<Script::Node>) args
The arguments to the mixin.
16 17 18 |
# File '/var/www/sass-pages/.sass/lib/sass/tree/mixin_node.rb', line 16
def args
@args
end
|
- ({String => Script::Node}) keywords
A hash from keyword argument names to values.
20 21 22 |
# File '/var/www/sass-pages/.sass/lib/sass/tree/mixin_node.rb', line 20
def keywords
@keywords
end
|
- (String) name (readonly)
The name of the mixin.
12 13 14 |
# File '/var/www/sass-pages/.sass/lib/sass/tree/mixin_node.rb', line 12
def name
@name
end
|