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 * basictest/test.rb: Adjust spaces in class declarations 2016-10-07 05:18:57 +00:00
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 Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
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 Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
help.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
init.rb Removed math mode from irb. 2017-04-20 09:11:36 +00:00
input-method.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
inspector.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
locale.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
magic-file.rb Don't pollute toplevel by an IRB internal method 2017-06-15 10:43:17 +00:00
notifier.rb * basictest/test.rb: Adjust spaces in class declarations 2016-10-07 05:18:57 +00:00
output-method.rb * basictest/test.rb: Adjust spaces in class declarations 2016-10-07 05:18:57 +00:00
ruby-lex.rb ruby-lex.rb: fix continued line conditions 2017-04-20 11:07:02 +00:00
ruby-token.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
slex.rb slex.rb: japanese comment [ci skip] 2017-01-09 02:45:28 +00:00
src_encoding.rb Don't pollute toplevel by an IRB internal method 2017-06-15 10:43:17 +00:00
version.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
workspace.rb Use qualified names 2016-08-30 06:22:30 +00:00
ws-for-case-2.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
xmp.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00