Class: Chelsy::Return
Overview
=== 6.8.6.4 The return statement
Instance Attribute Summary collapse
-
#expr ⇒ Object
readonly
Returns the value of attribute expr.
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(expr = nil, **rest) ⇒ Return
constructor
A new instance of Return.
Constructor Details
#initialize(expr = nil, **rest) ⇒ Return
Returns a new instance of Return.
1094 1095 1096 1097 1098 |
# File 'lib/chelsy/ast.rb', line 1094 def initialize(expr=nil, **rest) @expr = Syntax::Expr.ensure(expr) if expr super(**rest) end |
Instance Attribute Details
#expr ⇒ Object (readonly)
Returns the value of attribute expr.
1092 1093 1094 |
# File 'lib/chelsy/ast.rb', line 1092 def expr @expr end |