Class: Vertigo::Elsif

Inherits:
AstNode 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) ⇒ Elsif

Returns a new instance of Elsif.



239
240
241
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 239

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

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



238
239
240
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 238

def body
  @body
end

#condObject

Returns the value of attribute cond.



238
239
240
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 238

def cond
  @cond
end