class Sass::Script::Literal

def to_i

Raises:
  • (Sass::SyntaxError) - if this literal isn't an integer

Returns:
  • (Fixnum) - The integer value of this literal
def to_i
  raise Sass::SyntaxError.new("#{self.inspect} is not an integer.")
end