Class: AdLint::Cpp::IncludeLine
- Inherits:
-
ControlLine
- Object
- SyntaxNode
- GroupPart
- ControlLine
- AdLint::Cpp::IncludeLine
- Defined in:
- lib/adlint/cpp/syntax.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#fpath ⇒ Object
Returns the value of attribute fpath.
-
#header_name ⇒ Object
readonly
Returns the value of attribute header_name.
-
#include_depth ⇒ Object
readonly
Returns the value of attribute include_depth.
Attributes inherited from ControlLine
Instance Method Summary collapse
-
#initialize(keyword, header_name, include_depth) ⇒ IncludeLine
constructor
A new instance of IncludeLine.
Methods inherited from ControlLine
Methods inherited from SyntaxNode
#inspect, #location, #short_class_name
Methods included from LocationHolder
Methods included from Visitable
Constructor Details
#initialize(keyword, header_name, include_depth) ⇒ IncludeLine
Returns a new instance of IncludeLine.
317 318 319 320 321 |
# File 'lib/adlint/cpp/syntax.rb', line 317 def initialize(keyword, header_name, include_depth) super(keyword) @header_name = header_name @include_depth = include_depth end |
Instance Attribute Details
#fpath ⇒ Object
Returns the value of attribute fpath.
325 326 327 |
# File 'lib/adlint/cpp/syntax.rb', line 325 def fpath @fpath end |
#header_name ⇒ Object (readonly)
Returns the value of attribute header_name.
324 325 326 |
# File 'lib/adlint/cpp/syntax.rb', line 324 def header_name @header_name end |
#include_depth ⇒ Object (readonly)
Returns the value of attribute include_depth.
323 324 325 |
# File 'lib/adlint/cpp/syntax.rb', line 323 def include_depth @include_depth end |