mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/yaml.rb: Kernel#y requires an argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0ff8d6346e
commit
36fc61901d
2 changed files with 7 additions and 1 deletions
|
|
@ -400,7 +400,8 @@ module Kernel
|
|||
# ryan:: Either way, I certainly will have a pony parade.
|
||||
#
|
||||
|
||||
def y( *x )
|
||||
def y( o, *x )
|
||||
x.unshift o
|
||||
puts( if x.length == 1
|
||||
YAML::dump( *x )
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue