Class: Sass::Callable
- Inherits:
- Struct
- Object
- Struct
- Sass::Callable
- Defined in:
- /Users/ceppstei/Projects/sass-lang/.sass/lib/sass/engine.rb
Overview
A Sass mixin or function.
name
:String
- The name of the mixin/function.
args
:Array<(Script::Tree::Node, Script::Tree::Node)>
- The arguments for the mixin/function. Each element is a tuple containing the variable node of the argument and the parse tree for the default value of the argument.
splat
:Script::Tree::Node?
- The variable node of the splat argument for this callable, or null.
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.
has_content
:Boolean
- Whether the callable accepts a content block.
type
:String
- The user-friendly name of the type of the callable.
Instance Attribute Summary (collapse)
- - (Object) args
Returns the value of attribute args.
- - (Object) environment
Returns the value of attribute environment.
- - (Object) has_content
Returns the value of attribute has_content.
- - (Object) name
Returns the value of attribute name.
- - (Object) splat
Returns the value of attribute splat.
- - (Object) tree
Returns the value of attribute tree.
- - (Object) type
Returns the value of attribute type.
Instance Attribute Details
- (Object) args
Returns the value of attribute args
82 83 84 | # File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/engine.rb', line 82
def args
@args
end |
- (Object) environment
Returns the value of attribute environment
82 83 84 | # File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/engine.rb', line 82
def environment
@environment
end |
- (Object) has_content
Returns the value of attribute has_content
82 83 84 | # File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/engine.rb', line 82
def has_content
@has_content
end |
- (Object) name
Returns the value of attribute name
82 83 84 | # File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/engine.rb', line 82
def name
@name
end |
- (Object) splat
Returns the value of attribute splat
82 83 84 | # File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/engine.rb', line 82
def splat
@splat
end |
- (Object) tree
Returns the value of attribute tree
82 83 84 | # File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/engine.rb', line 82
def tree
@tree
end |
- (Object) type
Returns the value of attribute type
82 83 84 | # File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/engine.rb', line 82
def type
@type
end |