1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
eregon 2013-04-28 14:34:22 +00:00
parent 531d47d6c1
commit 253f49dbc2
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Sun Apr 28 23:34:01 2013 Benoit Daloze <eregontp@gmail.com>
* lib/yaml.rb: Use another trick to define the YAML module.
https://twitter.com/n0kada/status/328342207511801856
Sun Apr 28 23:19:00 2013 Zachary Scott <zachary@zacharyscott.net>
* lib/pp.rb: Update PP module overview by @geopet

View file

@ -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