public static function SassScriptFunctions::unquote in Sassy 7
Same name and namespace in other branches
- 7.3 phpsass/script/SassScriptFunctions.php \SassScriptFunctions::unquote()
* Removes quotes from a string if the string is quoted, or returns the same * string if it's not. *
Parameters
string String to unquote: * @return new SassString Unuoted string * @throws SassScriptFunctionException If $string is not a string * @see quote
File
- phamlp/
sass/ script/ SassScriptFunctions.php, line 709
Class
- SassScriptFunctions
- SassScript functions class. A collection of functions for use in SassSCript. @package PHamlP @subpackage Sass.script
Code
public static function unquote($string) {
SassLiteral::assertType($string, 'SassString');
return new SassString($string->value);
}