class AdLint::LexerContext

DESCRIPTION

Generic lexical analysis context.

Attributes

content[R]

VALUE

SourceContent | StringContent – The target content of this context.

Public Class Methods

new(cont) click to toggle source

DESCRIPTION

Constructs a lexical analysis context object.

PARAMETER

cont

SourceContent | StringContent – Target content.

# File lib/adlint/lexer.rb, line 205
def initialize(cont)
  @content = cont
end

Public Instance Methods

location() click to toggle source

DESCRIPTION

Reads the current location of the target content.

RETURN VALUE

Location – Current location.

# File lib/adlint/lexer.rb, line 218
def location
  @content.location
end