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 af3f526 commit 493e488Copy full SHA for 493e488
ChangeLog
@@ -1,3 +1,7 @@
1
+Sun Nov 6 11:53:23 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
2
+
3
+ * lib/irb.rb (Binding#irb): new method like Binding#pry.
4
5
Sun Nov 6 11:48:55 2016 Shugo Maeda <shugo@ruby-lang.org>
6
7
* test/net/smtp/test_smtp.rb (test_tls_connect, test_tls_connect):
lib/irb.rb
@@ -705,3 +705,11 @@ def @CONF.inspect
705
array.join("\n")
706
end
707
708
709
+class Binding
710
+ # :nodoc:
711
+ def irb
712
+ IRB.setup(eval("__FILE__"))
713
+ IRB::Irb.new(IRB::WorkSpace.new(self)).run(IRB.conf)
714
+ end
715
+end
0 commit comments