mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* eval.c (proc_alloc): re-unification of Block and Proc. Block
class is no longer available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5fb3efb267
commit
590a37880c
19 changed files with 167 additions and 182 deletions
|
@ -74,7 +74,7 @@ class RubyLex
|
|||
elsif block_given?
|
||||
@input = block
|
||||
else
|
||||
@input = Block.new{@io.gets}
|
||||
@input = Proc.new{@io.gets}
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -188,7 +188,7 @@ class RubyLex
|
|||
if p.respond_to?(:call)
|
||||
@prompt = p
|
||||
else
|
||||
@prompt = Block.new{print p}
|
||||
@prompt = Proc.new{print p}
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue