Class: Sass::Mixin
- Inherits:
-
Struct
- Object
- Struct
- Sass::Mixin
- 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
-
#args ⇒ Object
Returns the value of attribute args.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#name ⇒ Object
Returns the value of attribute name.
-
#tree ⇒ Object
Returns the value of attribute tree.
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args
47 48 49 |
# File 'lib/sass/engine.rb', line 47
def args
@args
end
|
#environment ⇒ Object
Returns the value of attribute environment
47 48 49 |
# File 'lib/sass/engine.rb', line 47
def environment
@environment
end
|
#name ⇒ Object
Returns the value of attribute name
47 48 49 |
# File 'lib/sass/engine.rb', line 47
def name
@name
end
|
#tree ⇒ Object
Returns the value of attribute tree
47 48 49 |
# File 'lib/sass/engine.rb', line 47
def tree
@tree
end
|