Class: Crokus::If
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#cond ⇒ Object
Returns the value of attribute cond.
-
#else ⇒ Object
Returns the value of attribute else.
Instance Method Summary collapse
-
#initialize(cond, body, else_ = nil) ⇒ If
constructor
A new instance of If.
Methods inherited from Ast
Constructor Details
#initialize(cond, body, else_ = nil) ⇒ If
Returns a new instance of If.
290 291 292 |
# File 'lib/crokus/ast.rb', line 290 def initialize cond,body,else_=nil @cond,@body,@else=cond,body,else_ end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
289 290 291 |
# File 'lib/crokus/ast.rb', line 289 def body @body end |
#cond ⇒ Object
Returns the value of attribute cond.
289 290 291 |
# File 'lib/crokus/ast.rb', line 289 def cond @cond end |
#else ⇒ Object
Returns the value of attribute else.
289 290 291 |
# File 'lib/crokus/ast.rb', line 289 def else @else end |