mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* numeric.c (num_step): also return an enumerator object if no block
is given. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b8e1343f5e
commit
a35efc05ad
2 changed files with 7 additions and 1 deletions
|
@ -1,6 +1,11 @@
|
|||
Sun Aug 20 11:46:52 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* numeric.c (num_step): also return an enumerator object if no block
|
||||
is given.
|
||||
|
||||
Sat Aug 19 16:47:51 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
|
||||
|
||||
* ext/win32ole/win32ole.c (hash2named_arg): accept hash argument
|
||||
* ext/win32ole/win32ole.c (hash2named_arg): accept hash argument
|
||||
of symbol key.
|
||||
|
||||
* test/win32ole/test_win32ole.rb
|
||||
|
|
|
@ -1387,6 +1387,7 @@ num_step(int argc, VALUE *argv, VALUE from)
|
|||
{
|
||||
VALUE to, step;
|
||||
|
||||
RETURN_ENUMERATOR(from, argc, argv);
|
||||
if (argc == 1) {
|
||||
to = argv[0];
|
||||
step = INT2FIX(1);
|
||||
|
|
Loading…
Reference in a new issue