Class: AdLint::Cpp::ElifGroup
- Inherits:
-
SyntaxNode
- Object
- SyntaxNode
- AdLint::Cpp::ElifGroup
- Defined in:
- lib/adlint/cpp/syntax.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#keyword ⇒ Object
readonly
Returns the value of attribute keyword.
Instance Method Summary collapse
-
#initialize(keyword) ⇒ ElifGroup
constructor
A new instance of ElifGroup.
- #location ⇒ Object
Methods inherited from SyntaxNode
Methods included from LocationHolder
Methods included from Visitable
Constructor Details
#initialize(keyword) ⇒ ElifGroup
Returns a new instance of ElifGroup.
235 236 237 |
# File 'lib/adlint/cpp/syntax.rb', line 235 def initialize(keyword) @keyword = keyword end |
Instance Attribute Details
#keyword ⇒ Object (readonly)
Returns the value of attribute keyword.
239 240 241 |
# File 'lib/adlint/cpp/syntax.rb', line 239 def keyword @keyword end |
Instance Method Details
#location ⇒ Object
241 242 243 |
# File 'lib/adlint/cpp/syntax.rb', line 241 def location @keyword.location end |