summaryrefslogtreecommitdiff
path: root/lib/irb/context.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/irb/context.rb')
-rw-r--r--lib/irb/context.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/context.rb b/lib/irb/context.rb
index 1c504451cbb..a041a001e4a 100644
--- a/lib/irb/context.rb
+++ b/lib/irb/context.rb
@@ -164,7 +164,7 @@ module IRB
end
def file_input?
- @io.type == FileInputMethod
+ @io.class == FileInputMethod
end
def inspect_mode=(opt)