Guest User

Untitled

a guest
Jul 16th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. require 'fileutils'
  2. require 'yaml'
  3.  
  4. filename = "unimportant_file_with_a_pointlessly_long_name"
  5. FileUtils.touch(filename) # let's make sure it exists
  6. YAML::load_file(filename) # or File.open(filename) {|yf| YAML::load(yf)}
  7. puts $$
  8. sleep
  9.  
  10. # No problems here. Whew!
Add Comment
Please, Sign In to add comment