fork download
  1. def version
  2. return "1"
  3. end
  4.  
  5. puts version
  6. puts version.nil?
  7. puts version
  8. puts version.nil?
  9. if version.nil?
  10. puts "FOOO"
  11. version = "2"
  12. end
  13. puts version
  14. puts version.nil?
  15.  
Success #stdin #stdout 0.01s 7408KB
stdin
Standard input is empty
stdout
1
false
1
false

true