summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/irb.rb2
-rw-r--r--lib/irb/input-method.rb6
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/irb.rb b/lib/irb.rb
index d212a314f8..5c8cb7043d 100644
--- a/lib/irb.rb
+++ b/lib/irb.rb
@@ -459,7 +459,7 @@ module IRB
if l = @context.io.gets
print l if @context.verbose?
else
- if @context.ignore_eof? and @context.io.readable_atfer_eof?
+ if @context.ignore_eof? and @context.io.readable_after_eof?
l = "\n"
if @context.verbose?
printf "Use \"exit\" to leave %s\n", @context.ap_name
diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb
index e1a680847c..55363fe0c4 100644
--- a/lib/irb/input-method.rb
+++ b/lib/irb/input-method.rb
@@ -38,7 +38,7 @@ module IRB
# read.
#
# See IO#eof for more information.
- def readable_atfer_eof?
+ def readable_after_eof?
false
end
end
@@ -74,7 +74,7 @@ module IRB
# read.
#
# See IO#eof for more information.
- def readable_atfer_eof?
+ def readable_after_eof?
true
end
@@ -170,7 +170,7 @@ module IRB
# read.
#
# See IO#eof for more information.
- def readable_atfer_eof?
+ def readable_after_eof?
true
end