mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
String#dump
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9eee63661b
commit
cdde29b924
5 changed files with 100 additions and 3 deletions
3
eval.c
3
eval.c
|
@ -4708,6 +4708,9 @@ block_pass(self, node)
|
|||
volatile int orphan;
|
||||
volatile int safe = safe_level;
|
||||
|
||||
if (NIL_P(block)) {
|
||||
return rb_eval(self, node->nd_iter);
|
||||
}
|
||||
if (obj_is_kind_of(block, cMethod)) {
|
||||
block = method_proc(block);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue