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. version = "2" if version.nil?
  10. puts version
  11. puts version.nil?
  12.  
Success #stdin #stdout 0.01s 7452KB
stdin
Standard input is empty
stdout
1
false
1
false
2
false