Class: Sass::Callable
- Inherits:
-
Struct
- Object
- Struct
- Sass::Callable
- Defined in:
- lib/sass/engine.rb
Overview
A Sass mixin or function.
name
: String
: The name of the mixin/function.
args
: Array<(String, Script::Node)>
: The arguments for the mixin/function.
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/function was defined.
This is captured so that the mixin/function can have access
to local variables defined in its scope.
tree
: Array<Tree::Node>
: The parse tree for the mixin/function.
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
61 62 63 |
# File 'lib/sass/engine.rb', line 61
def args
@args
end
|
#environment ⇒ Object
Returns the value of attribute environment
61 62 63 |
# File 'lib/sass/engine.rb', line 61
def environment
@environment
end
|
#name ⇒ Object
Returns the value of attribute name
61 62 63 |
# File 'lib/sass/engine.rb', line 61
def name
@name
end
|
#tree ⇒ Object
Returns the value of attribute tree
61 62 63 |
# File 'lib/sass/engine.rb', line 61
def tree
@tree
end
|