Class: Sass::Tree::MixinNode

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

See Also:

Instance Attribute Summary

Instance Method Summary

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

Parameters:



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.

Returns:



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.

Returns:



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.

Returns:

  • (String)


12
13
14
# File '/var/www/sass-pages/.sass/lib/sass/tree/mixin_node.rb', line 12

def name
  @name
end