Class: Vertigo::ForGenerate

Inherits:
AstNode
  • Object
show all
Defined in:
lib/vertigo/ast_vertigo_rkgen.rb

Instance Attribute Summary collapse

Attributes inherited from AstNode

#label, #pos

Instance Method Summary collapse

Methods inherited from AstNode

#accept, #str

Constructor Details

#initialize(index = nil, range = nil, decls = [], body = nil) ⇒ ForGenerate

Returns a new instance of ForGenerate.



330
331
332
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 330

def initialize index=nil,range=nil,decls=[],body=nil
  @index,@range,@decls,@body=index,range,decls,body
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



329
330
331
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 329

def body
  @body
end

#declsObject

Returns the value of attribute decls.



329
330
331
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 329

def decls
  @decls
end

#indexObject

Returns the value of attribute index.



329
330
331
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 329

def index
  @index
end

#rangeObject

Returns the value of attribute range.



329
330
331
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 329

def range
  @range
end