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.



51
52
53
# File 'lib/crokus/ast.rb', line 51

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

Instance Attribute Details

#argsObject

Returns the value of attribute args.



50
51
52
# File 'lib/crokus/ast.rb', line 50

def args
  @args
end

#exprObject

Returns the value of attribute expr.



50
51
52
# File 'lib/crokus/ast.rb', line 50

def expr
  @expr
end

#nameObject

Returns the value of attribute name.



50
51
52
# File 'lib/crokus/ast.rb', line 50

def name
  @name
end