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