Class: Vertigo::IfGenerate
- 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) ⇒ IfGenerate
constructor
A new instance of IfGenerate.
Methods inherited from AstNode
Constructor Details
#initialize(cond = nil, body = nil) ⇒ IfGenerate
Returns a new instance of IfGenerate.
323 324 325 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 323 def initialize cond=nil,body=nil @cond,@body=cond,body end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
322 323 324 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 322 def body @body end |
#cond ⇒ Object
Returns the value of attribute cond.
322 323 324 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 322 def cond @cond end |