diff options
author | Jean Boussier <jean.boussier@gmail.com> | 2023-01-11 11:00:58 +0100 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-01-11 10:08:13 +0000 |
commit | 3161fd437210588ef7ce41d614ab317de11d2ec1 (patch) | |
tree | dcc6e78bb8d71edb9658a010d322abbcf1b86419 /test/psych/test_encoding.rb | |
parent | e85ef212de98c817154ab62ae2d03508c512107e (diff) |
[ruby/psych] Get rid of anonymous eval calls
Things declared in anonymous eval are always annoying to locate.
https://github.com/ruby/psych/commit/38871ad4e5
Diffstat (limited to 'test/psych/test_encoding.rb')
-rw-r--r-- | test/psych/test_encoding.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/psych/test_encoding.rb b/test/psych/test_encoding.rb index 7d33814805..1867d59ea6 100644 --- a/test/psych/test_encoding.rb +++ b/test/psych/test_encoding.rb @@ -13,13 +13,13 @@ module Psych (Handler.instance_methods(true) - Object.instance_methods).each do |m| - class_eval %{ + class_eval <<~RUBY, __FILE__, __LINE__ + 1 def #{m} *args @strings += args.flatten.find_all { |a| String === a } end - } + RUBY end end |