On Apr 29, 5:00 pm, cban1
<caleb.banis...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I''m sure this is a trivial question, but I''m a java/C
programmer and
> am not used to implicit returns.
>
> If I have a function:
>
> def check_range ( num )
> rng = 0..10
>
> rng.include?( num )
> end
>
> ... does check_range evaluate to true or false depending on whether
> ''num'' is in the range (based on the last line of the
function)?
>
try it :)
> Is the implicit return basically just "the last thing the function
> evaluated" ?
Yup
Fred