Class: Vertigo::Parenth

Inherits:
AstNode show all
Defined in:
lib/vertigo/ast_vertigo_rkgen.rb

Instance Attribute Summary collapse

Attributes inherited from AstNode

#label, #pos

Instance Method Summary collapse

Methods inherited from AstNode

#accept, #str

Constructor Details

#initialize(expr = nil) ⇒ Parenth

Returns a new instance of Parenth.



456
457
458
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 456

def initialize expr=nil
  @expr=expr
end

Instance Attribute Details

#exprObject

Returns the value of attribute expr.



455
456
457
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 455

def expr
  @expr
end