Class: RubyRTL::Case
Overview
case / switch
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(condition, body = nil) ⇒ Case
constructor
A new instance of Case.
Methods inherited from Ast
Constructor Details
#initialize(condition, body = nil) ⇒ Case
Returns a new instance of Case.
171 172 173 |
# File 'lib/ruby_rtl/ast.rb', line 171 def initialize condition,body=nil @cond,@body=condition,body end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
170 171 172 |
# File 'lib/ruby_rtl/ast.rb', line 170 def body @body end |
#cond ⇒ Object
Returns the value of attribute cond.
170 171 172 |
# File 'lib/ruby_rtl/ast.rb', line 170 def cond @cond end |