Skip to content

Commit 493e488

Browse files
committed
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
1 parent af3f526 commit 493e488

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
15
Sun Nov 6 11:48:55 2016 Shugo Maeda <shugo@ruby-lang.org>
26

37
* test/net/smtp/test_smtp.rb (test_tls_connect, test_tls_connect):

lib/irb.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,3 +705,11 @@ def @CONF.inspect
705705
array.join("\n")
706706
end
707707
end
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

Comments
 (0)