1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib/irb
a_matsuda 88de87c295 Don't pollute toplevel by an IRB internal method
There actually are some libraries that requires 'irb' such as byebug, and when
'irb' is required, it requires irb/src_encoding.rb, then it defines the toplevel
default_src_encoding method that is visible from anywhere in the end users' apps.

Here's a quick oneliner that shows what's happening.

  % ruby -rpry-byebug -e 'p private_methods(false)'
  [:include, :using, :define_method, :public, :private, :DelegateClass, :default_src_encoding]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-06-15 10:43:17 +00:00
..
cmd
ext Removed math mode from irb. 2017-04-20 09:11:36 +00:00
lc Removed math mode from irb. 2017-04-20 09:11:36 +00:00
completion.rb
context.rb Removed math mode from irb. 2017-04-20 09:11:36 +00:00
extend-command.rb Removed math mode from irb. 2017-04-20 09:11:36 +00:00
frame.rb
help.rb
init.rb Removed math mode from irb. 2017-04-20 09:11:36 +00:00
input-method.rb
inspector.rb
locale.rb
magic-file.rb Don't pollute toplevel by an IRB internal method 2017-06-15 10:43:17 +00:00
notifier.rb
output-method.rb
ruby-lex.rb ruby-lex.rb: fix continued line conditions 2017-04-20 11:07:02 +00:00
ruby-token.rb
slex.rb
src_encoding.rb Don't pollute toplevel by an IRB internal method 2017-06-15 10:43:17 +00:00
version.rb
workspace.rb
ws-for-case-2.rb
xmp.rb