Class: AdLint::Cpp::UndefLine
- Inherits:
-
ControlLine
- Object
- SyntaxNode
- GroupPart
- ControlLine
- AdLint::Cpp::UndefLine
- Defined in:
- lib/adlint/cpp/syntax.rb
Instance Attribute Summary collapse
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
Attributes inherited from ControlLine
Instance Method Summary collapse
-
#initialize(keyword, id) ⇒ UndefLine
constructor
A new instance of UndefLine.
- #inspect(indent = 0) ⇒ Object
Methods inherited from ControlLine
Methods inherited from SyntaxNode
Methods included from LocationHolder
Methods included from Visitable
Constructor Details
#initialize(keyword, id) ⇒ UndefLine
Returns a new instance of UndefLine.
418 419 420 421 |
# File 'lib/adlint/cpp/syntax.rb', line 418 def initialize(keyword, id) super(keyword) @identifier = id end |
Instance Attribute Details
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier.
423 424 425 |
# File 'lib/adlint/cpp/syntax.rb', line 423 def identifier @identifier end |
Instance Method Details
#inspect(indent = 0) ⇒ Object
425 426 427 |
# File 'lib/adlint/cpp/syntax.rb', line 425 def inspect(indent = 0) " " * indent + "#{short_class_name} (#{@identifier.inspect})" end |