Class: RubyRTL::If
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#cond ⇒ Object
Returns the value of attribute cond.
-
#else ⇒ Object
idem.
-
#elsifs ⇒ Object
feeded by ContextualAnalyzer.
Attributes inherited from Ast
Instance Method Summary collapse
-
#initialize(cond, body = nil) ⇒ If
constructor
A new instance of If.
Methods inherited from Ast
Constructor Details
#initialize(cond, body = nil) ⇒ If
Returns a new instance of If.
121 122 123 124 125 |
# File 'lib/ruby_rtl/ast.rb', line 121 def initialize cond, body=nil @cond=cond @body=body @elsifs=[] end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
118 119 120 |
# File 'lib/ruby_rtl/ast.rb', line 118 def body @body end |
#cond ⇒ Object
Returns the value of attribute cond.
118 119 120 |
# File 'lib/ruby_rtl/ast.rb', line 118 def cond @cond end |
#else ⇒ Object
idem
120 121 122 |
# File 'lib/ruby_rtl/ast.rb', line 120 def else @else end |
#elsifs ⇒ Object
feeded by ContextualAnalyzer
119 120 121 |
# File 'lib/ruby_rtl/ast.rb', line 119 def elsifs @elsifs end |