You are here

public static function SassScriptFunctions::type_of in Sassy 7.3

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

Inspects the type of the argument, returning it as an unquoted string.

Parameters

SassLiteral The object to inspect:

Return value

new SassString The type of object

Throws

SassScriptFunctionException If $obj is not an instance of a SassLiteral

File

phpsass/script/SassScriptFunctions.php, line 767

Class

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

Code

public static function type_of($obj) {
  SassLiteral::assertType($obj, 'SassLiteral');
  return new SassString($obj->typeOf);
}