Class: Crokus::While

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) ⇒ While

Returns a new instance of While.



276
277
278
# File 'lib/crokus/ast.rb', line 276

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

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



275
276
277
# File 'lib/crokus/ast.rb', line 275

def body
  @body
end

#condObject

Returns the value of attribute cond.



275
276
277
# File 'lib/crokus/ast.rb', line 275

def cond
  @cond
end