class AdLint::SourceContent

DESCRIPTION

Object represents the whole content of the source file.

Public Class Methods

new(src, tab_width) click to toggle source

DESCRIPTION

Constructs the content object of the source file.

PARAMETER

src

Source – Target source object.

Calls superclass method AdLint::StringContent::new
# File lib/adlint/lexer.rb, line 166
def initialize(src, tab_width)
  super(src.open { |io| io.read }, tab_width, src.fpath)
end