Class: RubyRTL::FuncCall

Inherits:
Expr
  • Object
show all
Defined in:
lib/ruby_rtl/ast.rb

Overview

func call

Instance Attribute Summary collapse

Attributes inherited from Expr

#type

Attributes inherited from Ast

#comments

Instance Method Summary collapse

Methods inherited from Ast

#accept

Constructor Details

#initialize(name, args = []) ⇒ FuncCall

Returns a new instance of FuncCall.



200
201
202
# File 'lib/ruby_rtl/ast.rb', line 200

def initialize name,args=[]
  @name,@args=name,args
end

Instance Attribute Details

#argsObject

Returns the value of attribute args.



199
200
201
# File 'lib/ruby_rtl/ast.rb', line 199

def args
  @args
end

#nameObject

Returns the value of attribute name.



199
200
201
# File 'lib/ruby_rtl/ast.rb', line 199

def name
  @name
end