Class: Sass::Tree::MixinNode

Inherits:
Node
  • Object
show all
Defined in:
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.

See Also:

Instance Attribute Summary collapse

Attributes inherited from Node

#children, #filename, #has_children, #line, #options

Instance Method Summary collapse

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.

Parameters:



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

#argsArray<Script::Node>

The arguments to the mixin.

Returns:



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.

Returns:



20
21
22
# File 'lib/sass/tree/mixin_node.rb', line 20

def keywords
  @keywords
end

#nameString (readonly)

The name of the mixin.

Returns:

  • (String)


12
13
14
# File 'lib/sass/tree/mixin_node.rb', line 12

def name
  @name
end