Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def outer_example
- puts "this is the outer example return value"
- puts inner_example
- end
- def inner_example
- return "this is the inner example return value"
- puts "hi"
- puts 'you can have as many puts as you want'
- return "you can only have one return value in a function"
- end
- def third_example
- puts outer_example
- #puts inner_example
- end
- third_example
Add Comment
Please, Sign In to add comment