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