Method: AdLint::SourceContent#initialize
- Defined in:
- lib/adlint/lexer.rb
#initialize(src, tab_width) ⇒ SourceContent
DESCRIPTION
Constructs the content object of the source file.
PARAMETER
- src
-
Source – Target source object.
166 167 168 |
# File 'lib/adlint/lexer.rb', line 166 def initialize(src, tab_width) super(src.open { |io| io.read }, tab_width, src.fpath) end |