titanscssc::lib_type_of PHP Method

lib_type_of() protected method

protected lib_type_of ( $args )
    protected function lib_type_of($args)
    {
        $value = $args[0];
        switch ($value[0]) {
            case "keyword":
                if ($value == self::$true || $value == self::$false) {
                    return "bool";
                }
                if ($this->coerceColor($value)) {
                    return "color";
                }
                return "string";
            default:
                return $value[0];
        }
    }
titanscssc