class Sass::Source::Position

def after(str)

Returns:
  • (Position) - The source position after proceeding forward through

Parameters:
  • str (String) -- The string to move through.
def after(str)
  newlines = str.count("\n")
  Position.new(line + newlines,
    if newlines == 0
      offset + str.length
    else
      str.length - str.rindex("\n") - 1
    end)
end