Class: Vertigo::IfGenerate

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(cond = nil, body = nil) ⇒ IfGenerate

Returns a new instance of IfGenerate.



323
324
325
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 323

def initialize cond=nil,body=nil
  @cond,@body=cond,body
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



322
323
324
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 322

def body
  @body
end

#condObject

Returns the value of attribute cond.



322
323
324
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 322

def cond
  @cond
end