Class: Crokus::FormalArg

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(t, n) ⇒ FormalArg

Returns a new instance of FormalArg.



157
158
159
# File 'lib/crokus/ast.rb', line 157

def initialize t,n
  @name,@type=n,t
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



156
157
158
# File 'lib/crokus/ast.rb', line 156

def name
  @name
end

#typeObject

Returns the value of attribute type.



156
157
158
# File 'lib/crokus/ast.rb', line 156

def type
  @type
end