Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'fileutils'
- require 'yaml'
- filename = "unimportant_file_with_a_pointlessly_long_name"
- FileUtils.touch(filename) # let's make sure it exists
- YAML::load_file(filename) # or File.open(filename) {|yf| YAML::load(yf)}
- puts $$
- sleep
- # No problems here. Whew!
Add Comment
Please, Sign In to add comment