Skip to content
Permalink
Browse files

irb.rb: Binding#irb

* lib/irb.rb (Binding#irb): new method like Binding#pry.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Nov 6, 2016
1 parent af3f526 commit 493e48897421d176a8faf0f0820323d79ecdf94a
Showing with 12 additions and 0 deletions.
  1. +4 −0 ChangeLog
  2. +8 −0 lib/irb.rb
@@ -1,3 +1,7 @@
Sun Nov 6 11:53:23 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>

* lib/irb.rb (Binding#irb): new method like Binding#pry.

Sun Nov 6 11:48:55 2016 Shugo Maeda <shugo@ruby-lang.org>

* test/net/smtp/test_smtp.rb (test_tls_connect, test_tls_connect):
@@ -705,3 +705,11 @@ def @CONF.inspect
array.join("\n")
end
end

class Binding
# :nodoc:
def irb
IRB.setup(eval("__FILE__"))
IRB::Irb.new(IRB::WorkSpace.new(self)).run(IRB.conf)
end
end

0 comments on commit 493e488

Please sign in to comment.
You can’t perform that action at this time.