Class Sass::Script::String
In: lib/sass/script/string.rb
Parent: Literal

A SassScript object representing a CSS string or a CSS identifier.

Methods

context=   new   plus   to_s   to_sass  

Attributes

type  [R]  Whether this is a CSS string or a CSS identifier. The difference is that strings are written with double-quotes, while identifiers aren‘t.

@return [Symbol] `:string` or `:identifier`

value  [R]  The Ruby value of the string.

@return [String]

Public Class methods

Creates a new string.

@param value [String] See \{value} @param type [Symbol] See \{type}

Public Instance methods

In addition to setting the \{context} of the string, this sets the string to be an identifier if the context is `:equals`.

@see Node#context=

@see Node#to_s

[Validate]