Class: Vertigo::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_.
-
#elsifs ⇒ Object
Returns the value of attribute elsifs.
Attributes inherited from AstNode
Instance Method Summary collapse
-
#initialize(cond = nil, body = nil, elsifs = [], else_ = nil) ⇒ If
constructor
A new instance of If.
Methods inherited from AstNode
Constructor Details
#initialize(cond = nil, body = nil, elsifs = [], else_ = nil) ⇒ If
Returns a new instance of If.
232 233 234 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 232 def initialize cond=nil,body=nil,elsifs=[],else_=nil @cond,@body,@elsifs,@else_=cond,body,elsifs,else_ end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
231 232 233 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 231 def body @body end |
#cond ⇒ Object
Returns the value of attribute cond.
231 232 233 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 231 def cond @cond end |
#else_ ⇒ Object
Returns the value of attribute else_.
231 232 233 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 231 def else_ @else_ end |
#elsifs ⇒ Object
Returns the value of attribute elsifs.
231 232 233 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 231 def elsifs @elsifs end |