summaryrefslogtreecommitdiff
path: root/prelude.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-01-06 03:11:45 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-01-06 03:11:45 +0000
commit7802f01d4fcb9f237cac480364a09f788265fbbd (patch)
treecf8e72e076f11ca513e3d73ce21f468ab30c3cf2 /prelude.rb
parent93824a5f7390b5a548e9e1ce313ca279db8dc99b (diff)
prelude.rb: Binding#irb [ci skip]
* prelude.rb (Binding#irb): [EXPERIMENTAL] automatically require irb and run. [ruby-core:78960] [Bug #13099] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'prelude.rb')
-rw-r--r--prelude.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/prelude.rb b/prelude.rb
index 740aba5..231c64e 100644
--- a/prelude.rb
+++ b/prelude.rb
@@ -133,3 +133,10 @@ class IO
__write_nonblock(buf, exception)
end
end
+
+class Binding
+ def irb
+ require 'irb'
+ irb
+ end
+end