Method: Sass::Script::Value::Helpers#bool

Defined in:
lib/sass/script/value/helpers.rb

#bool(value) ⇒ Sass::Script::Value::Bool

Construct a Sass Boolean.

Parameters:

  • A ruby object that will be tested for truthiness.

Returns:

  • whether the ruby value is truthy.

Since:

  • 3.3.0



9
10
11
# File 'lib/sass/script/value/helpers.rb', line 9

def bool(value)
  Bool.new(value)
end