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.



161
162
163
# File 'lib/crokus/ast.rb', line 161

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

Instance Attribute Details

#nameObject

Returns the value of attribute name.



160
161
162
# File 'lib/crokus/ast.rb', line 160

def name
  @name
end

#typeObject

Returns the value of attribute type.



160
161
162
# File 'lib/crokus/ast.rb', line 160

def type
  @type
end