Guest User

Untitled

a guest
Oct 20th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. def outer_example
  2. puts "this is the outer example return value"
  3. puts inner_example
  4. end
  5.  
  6. def inner_example
  7. return "this is the inner example return value"
  8. puts "hi"
  9. puts 'you can have as many puts as you want'
  10. return "you can only have one return value in a function"
  11. end
  12.  
  13. def third_example
  14. puts outer_example
  15. #puts inner_example
  16. end
  17.  
  18.  
  19. third_example
Add Comment
Please, Sign In to add comment