Class: Sass::Mixin

Inherits:
Struct
  • Object
show all
Defined in:
lib/sass/engine.rb

Overview

A Sass mixin.

name: String : The name of the mixin.

args: Array<(String, Script::Node)> : The arguments for the mixin. Each element is a tuple containing the name of the argument and the parse tree for the default value of the argument.

environment: Environment : The environment in which the mixin was defined. This is captured so that the mixin can have access to local variables defined in its scope.

tree: Tree::Node : The parse tree for the mixin.

Instance Attribute Summary collapse

Instance Attribute Details

#argsObject

Returns the value of attribute args

Returns:

  • (Object)

    the current value of args



45
46
47
# File 'lib/sass/engine.rb', line 45

def args
  @args
end

#environmentObject

Returns the value of attribute environment

Returns:

  • (Object)

    the current value of environment



45
46
47
# File 'lib/sass/engine.rb', line 45

def environment
  @environment
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



45
46
47
# File 'lib/sass/engine.rb', line 45

def name
  @name
end

#treeObject

Returns the value of attribute tree

Returns:

  • (Object)

    the current value of tree



45
46
47
# File 'lib/sass/engine.rb', line 45

def tree
  @tree
end