Method: Sass::Script::Value::Number#to_s

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

#to_s(opts = {}) ⇒ String

Returns The CSS representation of this number.

Raises:

  • (Sass::SyntaxError)

    if this number has units that can't be used in CSS (e.g. px*in)



273
274
275
276
277
# File 'lib/sass/script/value/number.rb', line 273

def to_s(opts = {})
  return original if original
  raise Sass::SyntaxError.new("#{inspect} isn't a valid CSS value.") unless legal_units?
  inspect
end