Class Sass::Script::Funcall
In: lib/sass/script/funcall.rb
Parent: Node

A SassScript parse node representing a function call.

A function call either calls one of the functions in {Script::Functions}, or if no function with the given name exists it returns a string representation of the function call.

Methods

_perform   children   context=   inspect   new   to_sass  

Attributes

args  [R]  The arguments to the function.

@return [Array<Script::Node>]

name  [R]  The name of the function.

@return [String]

Public Class methods

@param name [String] See \{name} @param name [Array<Script::Node>] See \{args}

Public Instance methods

Returns the arguments to the function.

@return [Array<Node>] @see Node#children

Don‘t set the context for child nodes if this is `url()`, since `url()` allows quoted strings.

@param context [Symbol] @see Node#context=

@return [String] A string representation of the function call

Protected Instance methods

Evaluates the function call.

@param environment [Sass::Environment] The environment in which to evaluate the SassScript @return [Literal] The SassScript object that is the value of the function call @raise [Sass::SyntaxError] if the function call raises an ArgumentError

[Validate]