Class: Crokus::FunCall

Inherits:
Ast
  • Object
show all
Defined in:
lib/crokus/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Ast

#accept, #str

Constructor Details

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

Returns a new instance of FunCall.



150
151
152
# File 'lib/crokus/ast.rb', line 150

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

Instance Attribute Details

#argsObject

Returns the value of attribute args.



149
150
151
# File 'lib/crokus/ast.rb', line 149

def args
  @args
end

#nameObject

Returns the value of attribute name.



149
150
151
# File 'lib/crokus/ast.rb', line 149

def name
  @name
end