class AdLint::Include

DESCRIPTION

Header include information.

Public Class Methods

new(loc, fpath) click to toggle source

DESCRIPTION

Constructs the header include information.

PARAMETER

loc

LocationLocation where the directive appears.

fpath

Pathname – Path name of the included file.

# File lib/adlint/code.rb, line 335
def initialize(loc, fpath)
  @loc   = loc
  @fpath = fpath
end

Private Instance Methods

to_a() click to toggle source

DESCRIPTION

Converts this code structure information into array representation.

RETURN VALUE

Array< Object > – Array representation.

# File lib/adlint/code.rb, line 346
def to_a
  ["DEP", *@loc.to_a, "I", @fpath]
end