From b9de30c8ebe7d7227364f8430e86156c0b13db22 Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 16 Jun 2003 07:14:50 +0000 Subject: * eval.c (proc_alloc): re-unification of Block and Proc. Block class is no longer available. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/irb/ruby-lex.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/irb') diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb index 4b58ba6fd..3b62ef867 100644 --- a/lib/irb/ruby-lex.rb +++ b/lib/irb/ruby-lex.rb @@ -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 -- cgit