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.
-
#splat ⇒ Script::Node?
The splat argument for this mixin, if one exists.
Attributes inherited from Node
#children, #filename, #has_children, #line, #options
Instance Method Summary collapse
-
#initialize(name, args, keywords, splat) ⇒ MixinNode
constructor
A new instance of MixinNode.
Methods inherited from Node
#<<, #==, #balance, #bubbles?, #deep_copy, #each, #inspect, #invisible?, #style, #to_s, #to_sass, #to_scss
Constructor Details
#initialize(name, args, keywords, splat) ⇒ MixinNode
Returns a new instance of MixinNode.
31 32 33 34 35 36 37 |
# File 'lib/sass/tree/mixin_node.rb', line 31
def initialize(name, args, keywords, splat)
@name = name
@args = args
@keywords = keywords
@splat = splat
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
|
#splat ⇒ Script::Node?
The splat argument for this mixin, if one exists.
25 26 27 |
# File 'lib/sass/tree/mixin_node.rb', line 25
def splat
@splat
end
|