Class: Crokus::Define

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(n, a, e) ⇒ Define

Returns a new instance of Define.



55
56
57
# File 'lib/crokus/ast.rb', line 55

def initialize n,a,e
  @name,@args,@expr=n,a,e
end

Instance Attribute Details

#argsObject

Returns the value of attribute args.



54
55
56
# File 'lib/crokus/ast.rb', line 54

def args
  @args
end

#exprObject

Returns the value of attribute expr.



54
55
56
# File 'lib/crokus/ast.rb', line 54

def expr
  @expr
end

#nameObject

Returns the value of attribute name.



54
55
56
# File 'lib/crokus/ast.rb', line 54

def name
  @name
end