summaryrefslogtreecommitdiff
path: root/lib/irb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-06-16 07:14:50 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-06-16 07:14:50 +0000
commit590a37880c46ce080dde5864497758e0a83a24f4 (patch)
tree8708e5fd1cd567fc0fa55be976bfa23a580c109f /lib/irb
parent5fb3efb267a40d0b2410af36cd3421ef94492170 (diff)
* 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
Diffstat (limited to 'lib/irb')
-rw-r--r--lib/irb/ruby-lex.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb
index 4b58ba6fd5..3b62ef8676 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