Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.42 KB | None | 0 0
  1. BEGIN {
  2. puts "Ruby Init.."
  3. }
  4.  
  5. END {
  6. puts "Ruby End..."
  7. }
  8.  
  9.  
  10.  
  11. test = <<EOF
  12.  Hello there, this is a multiline string variable in ruby!
  13.  So far, I am absolutely LOVING the ruby language :D!
  14. It's Cool!
  15. EOF
  16.  
  17. puts test
  18.  
  19.  
  20.  
  21.  
  22. =begin
  23. Output of this program is:
  24.  
  25. Ruby init..
  26.  Hello there, this is a multiline string variable in ruby!
  27.  So far, I am absolutely LOVING the ruby language :D!
  28. It's Cool!
  29. Ruby End...
  30. =end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement