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.
286 287 288 |
# File 'lib/crokus/ast.rb', line 286 def initialize cond,body,else_=nil @cond,@body,@else=cond,body,else_ end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
285 286 287 |
# File 'lib/crokus/ast.rb', line 285 def body @body end |
#cond ⇒ Object
Returns the value of attribute cond.
285 286 287 |
# File 'lib/crokus/ast.rb', line 285 def cond @cond end |
#else ⇒ Object
Returns the value of attribute else.
285 286 287 |
# File 'lib/crokus/ast.rb', line 285 def else @else end |