mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
af3f52674a
commit
493e488974
2 changed files with 12 additions and 0 deletions
|
@ -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>
|
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):
|
* test/net/smtp/test_smtp.rb (test_tls_connect, test_tls_connect):
|
||||||
|
|
|
@ -705,3 +705,11 @@ module IRB
|
||||||
array.join("\n")
|
array.join("\n")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Binding
|
||||||
|
# :nodoc:
|
||||||
|
def irb
|
||||||
|
IRB.setup(eval("__FILE__"))
|
||||||
|
IRB::Irb.new(IRB::WorkSpace.new(self)).run(IRB.conf)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in a new issue