Method: Sass::Script::Value::Base#to_i

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

#to_iInteger

Returns The integer value of this value.

Returns:

  • (Integer)

    The integer value of this value

Raises:



181
182
183
# File 'lib/sass/script/value/base.rb', line 181

def to_i
  raise Sass::SyntaxError.new("#{inspect} is not an integer.")
end