Adding simple implicit return
Ruby return semantics are easy to grasp, not so easy to code. So many cases. Added support for common cases, return const/variable or call.
This commit is contained in:
@ -5,7 +5,7 @@ module Ruby
|
||||
attr_reader :return_value
|
||||
|
||||
def initialize(value)
|
||||
@return_value = value
|
||||
@return_value = value || NilConstant.new
|
||||
end
|
||||
|
||||
def to_vool
|
||||
|
Reference in New Issue
Block a user