class Sass::Script::Lexer

def str

Returns:
  • (String) -

Other tags:
    Yield: - A block in which text is recorded
def str
  old_pos = @tok ? @tok.pos : @scanner.pos
  yield
  new_pos = @tok ? @tok.pos : @scanner.pos
  @scanner.string[old_pos...new_pos]
end