Class: Crokus::DoWhile

Inherits:
CtrlStmt 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(cond, body = nil) ⇒ DoWhile

Returns a new instance of DoWhile.



279
280
281
# File 'lib/crokus/ast.rb', line 279

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

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



278
279
280
# File 'lib/crokus/ast.rb', line 278

def body
  @body
end

#condObject

Returns the value of attribute cond.



278
279
280
# File 'lib/crokus/ast.rb', line 278

def cond
  @cond
end