Class: Crokus::FunctionProto

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, ret_type, args = []) ⇒ FunctionProto

Returns a new instance of FunctionProto.



146
147
148
149
# File 'lib/crokus/ast.rb', line 146

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

Instance Attribute Details

#argsObject

Returns the value of attribute args.



145
146
147
# File 'lib/crokus/ast.rb', line 145

def args
  @args
end

#nameObject

Returns the value of attribute name.



145
146
147
# File 'lib/crokus/ast.rb', line 145

def name
  @name
end

#typeObject

Returns the value of attribute type.



145
146
147
# File 'lib/crokus/ast.rb', line 145

def type
  @type
end