Class: AdLint::Cpp::Expression
- Inherits:
-
SyntaxNode
- Object
- SyntaxNode
- AdLint::Cpp::Expression
- Defined in:
- lib/adlint/cpp/syntax.rb
Direct Known Subclasses
BinaryExpression, CommaSeparatedExpression, ConditionalExpression, ErrorExpression, PrimaryExpression, UnaryExpression
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(val) ⇒ Expression
constructor
A new instance of Expression.
- #to_s ⇒ Object
Methods inherited from SyntaxNode
#inspect, #location, #short_class_name
Methods included from LocationHolder
Methods included from Visitable
Constructor Details
#initialize(val) ⇒ Expression
Returns a new instance of Expression.
710 711 712 |
# File 'lib/adlint/cpp/syntax.rb', line 710 def initialize(val) @value = val end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
714 715 716 |
# File 'lib/adlint/cpp/syntax.rb', line 714 def value @value end |
Instance Method Details
#to_s ⇒ Object
716 717 718 |
# File 'lib/adlint/cpp/syntax.rb', line 716 def to_s subclass_responsibility end |