summaryrefslogtreecommitdiff
path: root/lib/irb.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/irb.rb')
-rw-r--r--lib/irb.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb.rb b/lib/irb.rb
index f9c2778..a08aa87 100644
--- a/lib/irb.rb
+++ b/lib/irb.rb
@@ -805,7 +805,7 @@ class Binding
#
# See IRB@IRB+Usage for more information.
def irb
- IRB.setup(eval("__FILE__"), argv: [])
+ IRB.setup(source_location[0], argv: [])
workspace = IRB::WorkSpace.new(self)
STDOUT.print(workspace.code_around_binding)
IRB::Irb.new(workspace).run(IRB.conf)