Class Sass::Script::Value::Bool
In: lib/sass/script/value/bool.rb
Parent: Base

A SassScript object representing a boolean (true or false) value.

Methods

new   to_s   to_sass  

Constants

TRUE = new(true)   The true value in SassScript.

This is assigned before new is overridden below so that we use the default implementation.

FALSE = new(false)   The false value in SassScript.

This is assigned before new is overridden below so that we use the default implementation.

External Aliases

value -> to_bool

Attributes

value  [R]  The Ruby value of the boolean.

@return [Boolean]

Public Class methods

We override object creation so that users of the core API will not need to know that booleans are specific constants.

@param value A ruby value that will be tested for truthiness. @return [Bool] TRUE if value is truthy, FALSE if value is falsey

Public Instance methods

@return [String] "true" or "false"

to_sass(opts = {})

Alias for to_s

[Validate]