Method: Sass::Script::Lexer#char

Defined in:
lib/sass/script/lexer.rb

#char(pos = @scanner.pos) ⇒ String

Returns the given character.

Returns:

  • (String)

189
190
191
# File 'lib/sass/script/lexer.rb', line 189

def char(pos = @scanner.pos)
  @scanner.string[pos, 1]
end