Class: Vertigo::Elsif
- Defined in:
- lib/vertigo/ast_vertigo_rkgen.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#cond ⇒ Object
Returns the value of attribute cond.
Attributes inherited from AstNode
Instance Method Summary collapse
-
#initialize(cond = nil, body = nil) ⇒ Elsif
constructor
A new instance of Elsif.
Methods inherited from AstNode
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
#body ⇒ Object
Returns the value of attribute body.
238 239 240 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 238 def body @body end |
#cond ⇒ Object
Returns the value of attribute cond.
238 239 240 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 238 def cond @cond end |