You are here

abstract public function SassLiteral::toString in Sassy 7.3

Same name and namespace in other branches
  1. 7 phamlp/sass/script/literals/SassLiteral.php \SassLiteral::toString()

Returns a string representation of the value.

Return value

string string representation of the value.

7 calls to SassLiteral::toString()
SassLiteral::op_comma in phpsass/script/literals/SassLiteral.php
SassScript ',' operation.
SassLiteral::op_concat in phpsass/script/literals/SassLiteral.php
The SassScript default operation (e.g. $a $b, "foo" "bar").
SassLiteral::op_div in phpsass/script/literals/SassLiteral.php
SassScript '/' operation.
SassLiteral::op_minus in phpsass/script/literals/SassLiteral.php
SassScript '-' operation.
SassLiteral::op_plus in phpsass/script/literals/SassLiteral.php
SassScript '+' operation.

... See full list

4 methods override SassLiteral::toString()
SassBoolean::toString in phpsass/script/literals/SassBoolean.php
Returns a string representation of the value.
SassColour::toString in phpsass/script/literals/SassColour.php
Converts the colour to a string.
SassNumber::toString in phpsass/script/literals/SassNumber.php
Converts the number to a string with it's units if any. If the units are px the result is rounded down to the nearest integer, otherwise the result is rounded to the specified precision.
SassString::toString in phpsass/script/literals/SassString.php
Returns a string representation of the value.

File

phpsass/script/literals/SassLiteral.php, line 354

Class

SassLiteral
SassLiteral class. Base class for all Sass literals. Sass data types are extended from this class and these override the operation methods to provide the appropriate semantics. @package PHamlP @subpackage Sass.script.literals

Code

public abstract function toString();