Class: RubyRTL::Elsif
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#cond ⇒ Object
Returns the value of attribute cond.
Attributes inherited from Ast
Instance Method Summary collapse
-
#initialize(cond, body = nil) ⇒ Elsif
constructor
A new instance of Elsif.
Methods inherited from Ast
Constructor Details
#initialize(cond, body = nil) ⇒ Elsif
Returns a new instance of Elsif.
137 138 139 |
# File 'lib/ruby_rtl/ast.rb', line 137 def initialize cond, body=nil @cond,@body=cond,body end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
136 137 138 |
# File 'lib/ruby_rtl/ast.rb', line 136 def body @body end |
#cond ⇒ Object
Returns the value of attribute cond.
136 137 138 |
# File 'lib/ruby_rtl/ast.rb', line 136 def cond @cond end |