class AdLint::Cpp::GroupedExpression
Attributes
expression[R]
Public Class Methods
new(val, expr)
click to toggle source
Calls superclass method
AdLint::Cpp::Expression::new
# File lib/adlint/cpp/syntax.rb, line 766 def initialize(val, expr) super(val) @expression = expr end
Public Instance Methods
inspect(indent = 0)
click to toggle source
# File lib/adlint/cpp/syntax.rb, line 781 def inspect(indent = 0) " " * indent + "#{short_class_name}\n" + @expression.inspect(indent + 1) end
location()
click to toggle source
# File lib/adlint/cpp/syntax.rb, line 773 def location @expression.location end
to_s()
click to toggle source
# File lib/adlint/cpp/syntax.rb, line 777 def to_s "(#{@expression.to_s})" end