diff options
Diffstat (limited to 'lib/irb/ruby-lex.rb')
-rw-r--r-- | lib/irb/ruby-lex.rb | 4 |
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 |