Created
March 11, 2011 15:35
-
-
Save l1x/866032 to your computer and use it in GitHub Desktop.
is this valid?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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