You are here

public static function SassScriptFunctions::type_of in Sassy 7

Same name and namespace in other branches
  1. 7.3 phpsass/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 new SassString The type of object * @throws SassScriptFunctionException If $obj is not an instance of a * SassLiteral

File

phamlp/sass/script/SassScriptFunctions.php, line 736

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);
}