Class: Sass::Callable
- Inherits:
-
Struct
- Object
- Struct
- Sass::Callable
- Defined in:
- .ruby-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.
`origin`: `Symbol` : From whence comes the callable: `:stylesheet`, `:builtin`, `:css`
A callable with an origin of `:stylesheet` was defined in the stylesheet itself.
A callable with an origin of `:builtin` was defined in ruby.
A callable (function) with an origin of `:css` returns a function call with arguments to CSS.
Instance Attribute Summary (collapse)
-
#args ⇒ Object
Returns the value of attribute args.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#has_content ⇒ Object
Returns the value of attribute has_content.
-
#name ⇒ Object
Returns the value of attribute name.
-
#origin ⇒ Object
Returns the value of attribute origin.
-
#splat ⇒ Object
Returns the value of attribute splat.
-
#tree ⇒ Object
Returns the value of attribute tree.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args
89 90 91 |
# File '.ruby-sass/lib/sass/engine.rb', line 89 def args @args end |
#environment ⇒ Object
Returns the value of attribute environment
89 90 91 |
# File '.ruby-sass/lib/sass/engine.rb', line 89 def environment @environment end |
#has_content ⇒ Object
Returns the value of attribute has_content
89 90 91 |
# File '.ruby-sass/lib/sass/engine.rb', line 89 def has_content @has_content end |
#name ⇒ Object
Returns the value of attribute name
89 90 91 |
# File '.ruby-sass/lib/sass/engine.rb', line 89 def name @name end |
#origin ⇒ Object
Returns the value of attribute origin
89 90 91 |
# File '.ruby-sass/lib/sass/engine.rb', line 89 def origin @origin end |
#splat ⇒ Object
Returns the value of attribute splat
89 90 91 |
# File '.ruby-sass/lib/sass/engine.rb', line 89 def splat @splat end |
#tree ⇒ Object
Returns the value of attribute tree
89 90 91 |
# File '.ruby-sass/lib/sass/engine.rb', line 89 def tree @tree end |
#type ⇒ Object
Returns the value of attribute type
89 90 91 |
# File '.ruby-sass/lib/sass/engine.rb', line 89 def type @type end |