You are here

public static function SassScriptFunctions::unit in Sassy 7.3

Same name and namespace in other branches
  1. 7 phamlp/sass/script/SassScriptFunctions.php \SassScriptFunctions::unit()

Inspects the unit of the number, returning it as a quoted string. Alias for units.

Parameters

SassNumber The number to inspect:

Return value

new SassString The units of the number

Throws

SassScriptFunctionException If $number is not a number

See also

units

File

phpsass/script/SassScriptFunctions.php, line 664

Class

SassScriptFunctions
SassScript functions class. A collection of functions for use in SassSCript. @package PHamlP @subpackage Sass.script

Code

public static function unit($number) {
  return self::units($number);
}