Skip to content

Instantly share code, notes, and snippets.

@l1x
Created March 11, 2011 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save l1x/866032 to your computer and use it in GitHub Desktop.
Save l1x/866032 to your computer and use it in GitHub Desktop.
is this valid?
class X
def initialize
begin
@yaml_hash = YAML::load(File.read("xyz.yml"))
rescue => e
puts "An error generated during opening the xyz.yml"
puts e
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment