diff options
author | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-28 14:34:22 +0000 |
---|---|---|
committer | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-28 14:34:22 +0000 |
commit | 253f49dbc25df81653cfcfe8f2421e082051cea0 (patch) | |
tree | 5ea457b34a9f11985ce9498929e2610f5dede056 /lib/yaml.rb | |
parent | 531d47d6c1c6d60cf4631121708977383f2e3aa2 (diff) |
* lib/yaml.rb: Use another trick to define the YAML module.
https://twitter.com/n0kada/status/328342207511801856
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/yaml.rb')
-rw-r--r-- | lib/yaml.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/yaml.rb b/lib/yaml.rb index 484cd06941..a0cef570cb 100644 --- a/lib/yaml.rb +++ b/lib/yaml.rb @@ -12,6 +12,8 @@ rescue LoadError raise end +YAML = Psych + module Psych # :nodoc: class EngineManager # Returns the YAML engine in use. @@ -79,5 +81,5 @@ end # # For more advanced details on the implementation see Psych, and also check out # yaml.org for spec details and other helpful information. -module YAML end if false -YAML = Psych +module YAML +end |