We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 512c771 commit 3348c46Copy full SHA for 3348c46
lib/irb.rb
@@ -924,10 +924,10 @@ class Binding
924
#
925
926
# See IRB@IRB+Usage for more information.
927
- def irb
+ def irb(show_code: true)
928
IRB.setup(source_location[0], argv: [])
929
workspace = IRB::WorkSpace.new(self)
930
- STDOUT.print(workspace.code_around_binding)
+ STDOUT.print(workspace.code_around_binding) if show_code
931
binding_irb = IRB::Irb.new(workspace)
932
binding_irb.context.irb_path = File.expand_path(source_location[0])
933
binding_irb.run(IRB.conf)
0 commit comments