what does this return? or ‘why i love ruby’

def x
  5
end
 
if false
  x = 3
end
 
puts x # => ?
Share:
  • del.icio.us
  • Reddit
  • Technorati
  • Twitter
  • Facebook
  • Google Bookmarks
  • HackerNews
  • PDF
  • RSS
This entry was posted in ruby. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.